Reduce number of string concats with fmt::format

This commit is contained in:
Andrew Johnson 2020-08-02 22:10:26 -04:00
parent c9120bafbc
commit b6276ea9e4
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB
4 changed files with 15 additions and 14 deletions

View file

@ -114,7 +114,7 @@ void read_plots_xml()
// Check if plots.xml exists
std::string filename = settings::path_input + "plots.xml";
if (!file_exists(filename)) {
fatal_error("Plots XML file '" + filename + "' does not exist!");
fatal_error(fmt::format("Plots XML file '{}' does not exist!", filename));
}
write_message("Reading plot XML file...", 5);