Print error code on error

This commit is contained in:
Sebastian Messmer 2018-12-18 21:23:16 -08:00
parent d68247070f
commit d5d2be26be
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ namespace cryfs {
_runFilesystem(options, std::move(onMounted));
} catch (const CryfsException &e) {
if (e.what() != string()) {
std::cerr << "Error: " << e.what() << std::endl;
std::cerr << "Error " << static_cast<int>(e.errorCode()) << ": " << e.what() << std::endl;
}
return exitCode(e.errorCode());
} catch (const std::runtime_error &e) {