From 5db146ef751507efd4f9556c9a0ab3bb5e88f7c5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 6 Jan 2017 03:23:20 +0300 Subject: Make use of operator<<(ostream, exception) --- mod/mod-repository-root.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/mod-repository-root.cxx') diff --git a/mod/mod-repository-root.cxx b/mod/mod-repository-root.cxx index c51c61c..84c1ed1 100644 --- a/mod/mod-repository-root.cxx +++ b/mod/mod-repository-root.cxx @@ -177,7 +177,9 @@ namespace brep // Note that the server_error exception is handled internally by the // module::handle() function call. // - throw runtime_error (string (name) + ": " + e.what ()); + ostringstream os; + os << name << ": " << e; + throw runtime_error (os.str ()); } }; -- cgit v1.1