Skip to content

Commit

Permalink
make a few errors less infuriating
Browse files Browse the repository at this point in the history
needs a larger overhaul as to not hide error codes/errors for most of the
mogadm requests and the url fetches. Simply printing the url it was trying
will help a lot though.
  • Loading branch information
dormando committed Dec 24, 2010
1 parent 3a49633 commit 7f38e6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mogadm
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ sub cmd_check {
print "REQUEST FAILURE (is the tracker up?)\n";
}
} else {
print "INITIAL FAILURE\n";
print "INITIAL FAILURE (bad configuration?)\n";
}
}

Expand All @@ -446,7 +446,7 @@ sub cmd_check {
print "OK\n";
push @urls, [ $hostid, $url ];
} else {
print "REQUEST FAILURE\n";
print "REQUEST FAILURE FETCHING: $url\n";
}
} else {
print "skipping; status = $hosts->{$hostid}->{status}\n";
Expand Down Expand Up @@ -499,7 +499,7 @@ sub cmd_check {
$pct, ($dev->{observed_state} || "?"),
$dev->{utilization});
} else {
print "REQUEST FAILURE\n";
print "REQUEST FAILURE FETCHING: $url" . "/dev$devid/usage\n";
}
}
}
Expand Down

0 comments on commit 7f38e6f

Please sign in to comment.