Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
Added more output for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-pluskal committed Apr 10, 2017
1 parent 3409378 commit 6a4770d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public void run() {
project.addFile(finalRawDataFile);

} catch (Throwable e) {
e.printStackTrace();
/* we may already have set the status to CANCELED */
if (getStatus() == TaskStatus.PROCESSING) {
setStatus(TaskStatus.ERROR);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public void run() {
project.addFile(finalRawDataFile);

} catch (Throwable e) {
e.printStackTrace();
setStatus(TaskStatus.ERROR);
setErrorMessage("Error parsing mzML: "
+ ExceptionUtils.exceptionToString(e));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ public void endElement(String namespaceURI, String sName, // simple name
try {
newMZmineFile.addScan(currentScan);
} catch (IOException e) {
e.printStackTrace();
setStatus(TaskStatus.ERROR);
setErrorMessage("IO error: " + e);
throw new SAXException("Parsing cancelled");
throw new SAXException("Parsing error: " + e);
}
parsedScans++;
}
Expand Down

0 comments on commit 6a4770d

Please sign in to comment.