From d0363eeb598f430dc23083b517fdd96099a1ab4e Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 10 Feb 2019 12:35:09 -0800 Subject: [PATCH] Update HAL GetStackTrace to properly report user errors With the move of the HAL, the old value no longer worked, as the JNI call is in a different namespace --- hal/src/main/native/cpp/jni/HALUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/src/main/native/cpp/jni/HALUtil.cpp b/hal/src/main/native/cpp/jni/HALUtil.cpp index 72eb22c72db..92d09b4ddc4 100644 --- a/hal/src/main/native/cpp/jni/HALUtil.cpp +++ b/hal/src/main/native/cpp/jni/HALUtil.cpp @@ -127,7 +127,7 @@ void ReportError(JNIEnv* env, int32_t status, bool doThrow) { ThrowUncleanStatusException(env, buf.c_str(), status); } else { std::string func; - auto stack = GetJavaStackTrace(env, &func, "edu.wpi.first.wpilibj"); + auto stack = GetJavaStackTrace(env, &func, "edu.wpi.first"); HAL_SendError(1, status, 0, message, func.c_str(), stack.c_str(), 1); } }