diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-06 03:23:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-09 21:37:04 +0300 |
commit | 5db146ef751507efd4f9556c9a0ab3bb5e88f7c5 (patch) | |
tree | 4814f25c7101588a7dd7433fac4f797972295f95 /migrate | |
parent | de29ab0fc899955304fc65ae688f69b6ed805bc9 (diff) |
Make use of operator<<(ostream, exception)
Diffstat (limited to 'migrate')
-rw-r--r-- | migrate/migrate.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migrate/migrate.cxx b/migrate/migrate.cxx index 4001bf9..98bdfbd 100644 --- a/migrate/migrate.cxx +++ b/migrate/migrate.cxx @@ -335,7 +335,7 @@ catch (const database_locked&) } catch (const recoverable& e) { - cerr << "database recoverable error: " << e.what () << endl; + cerr << "database recoverable error: " << e << endl; return 3; } catch (const cli::exception& e) @@ -351,6 +351,6 @@ catch (const failed&) // catch (const std::exception& e) { - cerr << "error: " << e.what () << endl; + cerr << "error: " << e << endl; return 1; } |