Make failure of HAL_GetFPGATime() more descriptive (#1633)

This commit is contained in:
Tyler Veness
2019-04-27 20:34:14 -07:00
committed by Peter Johnson
parent 2de3bf7f58
commit d3affb16bc
2 changed files with 6 additions and 4 deletions

View File

@@ -379,8 +379,9 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
uint64_t rv = HAL_GetFPGATime(&status);
if (status != 0) {
wpi::errs()
<< "Call to HAL_GetFPGATime failed."
<< "Initialization might have failed. Time will not be correct\n";
<< "Call to HAL_GetFPGATime failed in wpi::Now() with status "
<< status
<< ". Initialization might have failed. Time will not be correct\n";
wpi::errs().flush();
return 0u;
}