Print error code on error
This commit is contained in:
parent
d68247070f
commit
d5d2be26be
@ -395,7 +395,7 @@ namespace cryfs {
|
|||||||
_runFilesystem(options, std::move(onMounted));
|
_runFilesystem(options, std::move(onMounted));
|
||||||
} catch (const CryfsException &e) {
|
} catch (const CryfsException &e) {
|
||||||
if (e.what() != string()) {
|
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());
|
return exitCode(e.errorCode());
|
||||||
} catch (const std::runtime_error &e) {
|
} catch (const std::runtime_error &e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user