From f073b09a97a0802fc368b53d63f1ff0e443bf599 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Fri, 20 Sep 2024 23:12:18 +0000 Subject: [PATCH] use exception details instead of generic fail message --- .../XbeLoader/XbeXbSymbolDatabaseAnalyzer.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/XbeLoader/XbeXbSymbolDatabaseAnalyzer.java b/src/main/java/XbeLoader/XbeXbSymbolDatabaseAnalyzer.java index 049eade..c2c5729 100644 --- a/src/main/java/XbeLoader/XbeXbSymbolDatabaseAnalyzer.java +++ b/src/main/java/XbeLoader/XbeXbSymbolDatabaseAnalyzer.java @@ -122,14 +122,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 + "] : " + stackTrace.toString()); + st_i++; + } + log.appendMsg("message : " + e.getMessage()); return false; }