[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

@@ -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];
}