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(); } }