Skip to content

Commit

Permalink
use exception details instead of generic fail message
Browse files Browse the repository at this point in the history
  • Loading branch information
RadWolfie committed Sep 20, 2024
1 parent dec80d0 commit 2be7ac0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/main/java/XbeLoader/XbeXbSymbolDatabaseAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,13 @@ public boolean added(Program program, AddressSetView set, TaskMonitor monitor, M
}

exec.waitFor();
} catch (InterruptedException e) {
log.appendMsg("Failed to run " + toolExec);
return false;
} catch (IOException e) {
log.appendMsg("Failed to run " + toolExec);
return false;
} catch (InvalidInputException e) {
log.appendMsg("Failed to run " + toolExec);
} catch (Throwable e) {
int st_i = 0;
for (StackTraceElement stackTrace : e.getStackTrace()) {
log.appendMsg("stack[" + st_i + "] : " + e.getStackTrace()[st_i].toString());
st_i++;
}
log.appendMsg("message : " + e.getMessage());
return false;
}

Expand Down

0 comments on commit 2be7ac0

Please sign in to comment.