diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-06 03:23:55 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-09 21:35:36 +0300 |
commit | 64f84951d0e5c1d3352ba7b9f6c894eac72424c8 (patch) | |
tree | 1a8b69ae4d45ed08b6230dd1d4baf397d30e75b3 /bpkg/archive.cxx | |
parent | 9a90993e5605627121d7f51b4faf570d6d3bea83 (diff) |
Make use of operator<<(ostream, exception)
Diffstat (limited to 'bpkg/archive.cxx')
-rw-r--r-- | bpkg/archive.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx index fb7956d..3961aba 100644 --- a/bpkg/archive.cxx +++ b/bpkg/archive.cxx @@ -78,7 +78,7 @@ namespace bpkg } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); @@ -126,7 +126,6 @@ namespace bpkg } catch (const process_error& e) { - fail << "unable to extract " << f << " from " << a << ": " << e.what () - << endf; + fail << "unable to extract " << f << " from " << a << ": " << e << endf; } } |