Skip to content

Commit

Permalink
improve error handling: notice which class has problem clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
worksap-bot committed May 7, 2014
1 parent 525061c commit bdcb013
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public void sawOpcode(int opcode) {
try {
verifyVisibility(invokedClass, invokedMethod);
} catch (ClassNotFoundException e) {
throw new IllegalStateException(e);
String message = String.format("Detector could not find %s, you should add this class into CLASSPATH", invokedClass.getDottedClassName());
bugReporter.logError(message, e);
}
}
}
Expand Down

0 comments on commit bdcb013

Please sign in to comment.