Skip to content

Commit

Permalink
Better error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Nov 6, 2011
1 parent 3cc926b commit ffcaf04
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -74,6 +74,7 @@ public static TaskState getState(String task)
logger.debug(" -> " + status);
switch (status) {
case 404:
logger.error("Task gone missing (404): " + task);
state.setExists(false);
break;
case 200:
Expand All @@ -92,6 +93,7 @@ public static TaskState getState(String task)
state.setFinished(false);
break;
default:
logger.error("Task error (" + status + "): " + task);
throw new IllegalStateException(
"Service error: " + status + ":\n " +
method.getStatusText()
Expand Down

0 comments on commit ffcaf04

Please sign in to comment.