Skip to content

Commit

Permalink
More detailed error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Aug 11, 2012
1 parent ee81794 commit a9393d5
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -81,6 +81,7 @@ public static void delete(String task) throws IOException, GeneralSecurityExcept
}
}

@SuppressWarnings("serial")
public static TaskState getState(String task)
throws IOException {
HttpClient client = new HttpClient();
Expand All @@ -106,7 +107,7 @@ public static TaskState getState(String task)
break;
case 200:
if (result == null)
throw new IOException("Missing dataset URI for finished (200) Task.");
throw new IOException("Missing dataset URI for finished (200) Task: " + task);
state.setFinished(true);
state.setResults(getResultSetURI(createStore(result)));
break;
Expand All @@ -128,7 +129,7 @@ public static TaskState getState(String task)
} catch (BioclipseException e) {}
String error = getErrorMessage(store);
throw new IllegalStateException(
"Service error: " + error
"Service error (500) for " + task + ": " + error
);
default:
logger.error("Task error (" + status + "): " + task);
Expand Down

0 comments on commit a9393d5

Please sign in to comment.