aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 03:23:55 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-09 21:35:36 +0300
commit64f84951d0e5c1d3352ba7b9f6c894eac72424c8 (patch)
tree1a8b69ae4d45ed08b6230dd1d4baf397d30e75b3 /bpkg/checksum.cxx
parent9a90993e5605627121d7f51b4faf570d6d3bea83 (diff)
Make use of operator<<(ostream, exception)
Diffstat (limited to 'bpkg/checksum.cxx')
-rw-r--r--bpkg/checksum.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx
index d0424dc..75f1375 100644
--- a/bpkg/checksum.cxx
+++ b/bpkg/checksum.cxx
@@ -323,7 +323,7 @@ namespace bpkg
}
catch (const process_error& e)
{
- error << "unable to execute " << sha256_path << ": " << e.what ();
+ error << "unable to execute " << sha256_path << ": " << e;
if (e.child ())
exit (1);
@@ -423,7 +423,7 @@ namespace bpkg
}
catch (const io_error& e)
{
- fail << "unable read " << f << ": " << e.what () << endf;
+ fail << "unable read " << f << ": " << e << endf;
}
}
}