mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Throw correct exception in HAL_getJoystickAxes/POVs JNI (#1336)
Was incorrectly not returning immediately after throwing the exception. Also add more detail to exception.
This commit is contained in:
committed by
Peter Johnson
parent
15c5a820bf
commit
32ec07ee01
@@ -206,7 +206,7 @@ void ReportCANError(JNIEnv* env, int32_t status, int message_id) {
|
||||
}
|
||||
}
|
||||
|
||||
void ThrowIllegalArgumentException(JNIEnv* env, const char* msg) {
|
||||
void ThrowIllegalArgumentException(JNIEnv* env, wpi::StringRef msg) {
|
||||
illegalArgExCls.Throw(env, msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user