mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[hal] Add HAL_GetLastError to enable better error messages from HAL calls (#3320)
This uses thread local storage so a full error string can be provided, not just an error code.
This commit is contained in:
@@ -45,7 +45,7 @@ class RuntimeError : public std::runtime_error {
|
||||
/**
|
||||
* Gets error message string for an error code.
|
||||
*/
|
||||
const char* GetErrorMessage(int32_t code);
|
||||
const char* GetErrorMessage(int32_t* code);
|
||||
|
||||
/**
|
||||
* Reports an error to the driver station (using HAL_SendError).
|
||||
|
||||
Reference in New Issue
Block a user