From c1e22846281c3b6d9d52b7a17866fdf7c9973178 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 12 Jul 2016 19:21:53 -0700 Subject: [PATCH] Improved errno printing in diagnostic information messages. --- include/boost/exception/errinfo_errno.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/exception/errinfo_errno.hpp b/include/boost/exception/errinfo_errno.hpp index 612ae5e..657b5f7 100644 --- a/include/boost/exception/errinfo_errno.hpp +++ b/include/boost/exception/errinfo_errno.hpp @@ -34,7 +34,7 @@ boost { std::ostringstream tmp; int v=e.value(); - tmp << v << ", \"" << strerror(v) << "\""; + tmp << '[' << error_info_name(e) << "] = " << v << ", \"" << strerror(v) << "\"\n"; return tmp.str(); } }