Skip to content

Commit

Permalink
Update HAL GetStackTrace to properly report user errors (#1594)
Browse files Browse the repository at this point in the history
With the move of the HAL, the old value no longer worked, as the JNI call is in a different namespace
  • Loading branch information
ThadHouse authored and PeterJohnson committed Feb 12, 2019
1 parent 76d9e26 commit 997d4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/main/native/cpp/jni/HALUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 997d4fd

Please sign in to comment.