mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibc] Add C++ Notifier error handling, update java notifier error message (#4795)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user