[wpilibc] DriverStation: Remove ReportError and ReportWarning

Change use cases to directly call FRC_ReportError.
This commit is contained in:
Peter Johnson
2021-05-24 23:36:26 -07:00
parent 831c10bdfc
commit a04d1b4f97
26 changed files with 169 additions and 146 deletions

View File

@@ -4,7 +4,7 @@
#include "frc/shuffleboard/RecordingController.h"
#include "frc/DriverStation.h"
#include "frc/Errors.h"
using namespace frc;
using namespace frc::detail;
@@ -38,7 +38,8 @@ void RecordingController::AddEventMarker(
wpi::StringRef name, wpi::StringRef description,
ShuffleboardEventImportance importance) {
if (name.empty()) {
DriverStation::ReportError("Shuffleboard event name was not specified");
FRC_ReportError(err::Error, "{}",
"Shuffleboard event name was not specified");
return;
}
m_eventsTable->GetSubTable(name)->GetEntry("Info").SetStringArray(