Skip to content

Commit

Permalink
Update HAL GetStackTrace to properly report user errors (wpilibsuite#…
Browse files Browse the repository at this point in the history
…1594)

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 amrelk committed Apr 4, 2019
1 parent b05c0c8 commit f967427
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 f967427

Please sign in to comment.