From 997d4fdf47ae97a8cba857b01245803570c1f84f Mon Sep 17 00:00:00 2001 From: Thad House Date: Mon, 11 Feb 2019 20:17:31 -0800 Subject: [PATCH] Update HAL GetStackTrace to properly report user errors (#1594) 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 72eb22c72d..92d09b4ddc 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); } }