[wpilibc] Errors: Use fmtlib

This commit is contained in:
Peter Johnson
2021-05-23 19:33:33 -07:00
parent 87603e400d
commit 831c10bdfc
55 changed files with 551 additions and 533 deletions

View File

@@ -93,8 +93,8 @@ void MotorSafety::Check() {
wpi::SmallString<128> buf;
wpi::raw_svector_ostream desc(buf);
GetDescription(desc);
desc << "... Output not updated often enough.";
FRC_ReportError(err::Timeout, desc.str());
FRC_ReportError(err::Timeout, "{}... Output not updated often enough",
desc.str());
StopMotor();
}
}