mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilibc] Errors: Use fmtlib
This commit is contained in:
@@ -58,7 +58,7 @@ ShuffleboardLayout& ShuffleboardContainer::GetLayout(const wpi::Twine& title) {
|
||||
auto titleRef = title.toStringRef(storage);
|
||||
if (m_layouts.count(titleRef) == 0) {
|
||||
throw FRC_MakeError(err::InvalidParameter,
|
||||
"No layout with the given title has been defined");
|
||||
"No layout with title {} has been defined", titleRef);
|
||||
}
|
||||
return *m_layouts[titleRef];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user