re-handling qt error message along with the others

This commit is contained in:
benfry
2008-10-21 00:48:09 +00:00
parent a484346e88
commit e8128140e8

View File

@@ -618,6 +618,9 @@ public class Runner implements MessageConsumer {
} else if (exceptionName.equals("java.lang.NoSuchMethodError") || exceptionName.equals("java.lang.NoSuchFieldError")) {
listener.statusError(exceptionName.substring(10) + ": You're probably using a library that's incompatible with this version of Processing.");
} else if (message.equals("ClassNotFoundException: quicktime.std.StdQTException")) {
listener.statusError("Could not find QuickTime, please reinstall QuickTime 7 or later.");
} else {
reportException(message, event.thread());
}
@@ -625,8 +628,6 @@ public class Runner implements MessageConsumer {
}
boolean badQuickTimeWarning;
// This may be called more than one time per error in the VM,
// presumably because exceptions might be wrapped inside others,
// and this will fire for both.
@@ -635,15 +636,6 @@ public class Runner implements MessageConsumer {
int codeIndex = -1;
int lineNumber = -1;
String badQuickTime =
"ClassNotFoundException: quicktime.std.StdQTException";
if (message.equals(badQuickTime) && !badQuickTimeWarning) {
Base.showWarning("QuickTime not installed",
"Could not find a QuickTime installation.\n" +
"Please reinstall QuickTime 7 or later.", null);
badQuickTimeWarning = true;
}
// System.out.println("reporting ex");
List<StackFrame> frames = thread.frames();
for (StackFrame frame : frames) {