mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
re-handling qt error message along with the others
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user