mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
GP-0_d-millar: fix for stack trace when testing
This commit is contained in:
@@ -311,7 +311,7 @@ public class SarifLoader extends AbstractProgramLoader {
|
||||
}
|
||||
}
|
||||
|
||||
private ParseResult parse(ByteProvider provider) {
|
||||
private ParseResult parse(ByteProvider provider) throws IOException {
|
||||
try {
|
||||
ProgramSarifMgr lastSarifMgr = new ProgramSarifMgr(provider);
|
||||
ProgramInfo lastInfo = lastSarifMgr.getProgramInfo();
|
||||
@@ -321,8 +321,9 @@ public class SarifLoader extends AbstractProgramLoader {
|
||||
// This can happen during the import process when this loader attempts to load
|
||||
// a non-SARIF file (there really should be 2 methods, a speculative version and
|
||||
// a version that expects no exception)
|
||||
Msg.trace(this, "Unable to parse SARIF for " + provider.getName(), e);
|
||||
return new ParseResult(null, null);
|
||||
|
||||
// This will get caught and discarded by the opinion logic
|
||||
throw new IOException("Unable to parse "+provider.getName()+"as SARIF");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user