[wpilibc] Add C++ Notifier error handling, update java notifier error message (#4795)

This commit is contained in:
Ryan Blue
2022-12-12 01:42:22 -05:00
committed by GitHub
parent 6948cea67a
commit 944dd7265d
2 changed files with 21 additions and 4 deletions

View File

@@ -128,10 +128,12 @@ public class Notifier implements AutoCloseable {
error = cause;
}
DriverStation.reportError(
"Unhandled exception: " + error.toString(), error.getStackTrace());
"Unhandled exception in Notifier thread: " + error.toString(), error.getStackTrace());
DriverStation.reportError(
"The loopFunc() method (or methods called by it) should have handled "
+ "the exception above.",
"The Runnable for this Notifier (or methods called by it) should have handled "
+ "the exception above.\n"
+ " The above stacktrace can help determine where the error occurred.\n"
+ " See https://wpilib.org/stacktrace for more information.",
false);
});
m_thread.start();