Skip to content

Commit

Permalink
Printing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Nov 1, 2024
1 parent d72e767 commit a3b1ea1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ public static boolean checkValidURL(String url) {
}catch(Exception e) {
// not a url
//
com.neuronrobotics.sdk.common.Log.error("Invalid URL "+url);
System.out.println("Invalid URL "+url);
e.printStackTrace();
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public void run() {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
com.neuronrobotics.sdk.common.Log.error(sw.toString());
System.out.println(sw.toString());
}
}
} catch (Exception ex1) {
Expand All @@ -323,7 +323,7 @@ public void run() {

try {
String sw = org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(ex);
com.neuronrobotics.sdk.common.Log.error(sw.toString());
System.out.println(sw.toString());
// space out the exception highlights, ensure any sub threads spawned here have
// time to finish
Thread.sleep(100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ public void run() {
} catch (groovy.lang.MissingPropertyException | org.python.core.PyException d) {
BowlerStudioController.highlightException(currentFile, d);
} catch (Throwable ex) {
com.neuronrobotics.sdk.common.Log.error("Script exception of type= " + ex.getClass().getName());
System.out.println("Script exception of type= " + ex.getClass().getName());

try {
if (ex.getMessage().contains("sleep interrupted")) {
Expand Down

0 comments on commit a3b1ea1

Please sign in to comment.