From 07b679f70989f5c6e79b73134958d14ec495c44b Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 24 Aug 2022 13:00:56 +0200 Subject: [PATCH] tests: SVGAnalyzer: use fmt::format instead of string concatenation --- tests/svg_analyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/svg_analyzer.cpp b/tests/svg_analyzer.cpp index d3361c9b9..3f4017487 100644 --- a/tests/svg_analyzer.cpp +++ b/tests/svg_analyzer.cpp @@ -165,7 +165,7 @@ void SVGAnalyzer::retrieve_graphviz_components_impl( } else if (class_ == "cluster") { // ignore for now } else { - throw std::runtime_error("Unknown class" + std::string{class_}); + throw std::runtime_error{fmt::format("Unknown class {}", class_)}; } } -- 2.50.1