mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[wpilibc] Errors: Use fmtlib
This commit is contained in:
@@ -24,7 +24,7 @@ void Subsystem::SetDefaultCommand(Command* command) {
|
||||
} else {
|
||||
const auto& reqs = command->GetRequirements();
|
||||
if (std::find(reqs.begin(), reqs.end(), this) == reqs.end()) {
|
||||
throw FRC_MakeError(err::CommandIllegalUse,
|
||||
throw FRC_MakeError(err::CommandIllegalUse, "{}",
|
||||
"A default command must require the subsystem");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user