Fix exit code for when the password is wrong
This commit is contained in:
parent
5948f63fc8
commit
cab495f3ac
@ -247,6 +247,8 @@ namespace cryfs {
|
||||
std::cout << "\nMounting filesystem. To unmount, call:\n$ fusermount -u " << options.mountDir() << "\n" << std::endl;
|
||||
#endif
|
||||
fuse.run(options.mountDir(), options.fuseOptions());
|
||||
} catch (const CryfsException &e) {
|
||||
throw; // CryfsException is only thrown if setup goes wrong. Throw it through so that we get the correct process exit code.
|
||||
} catch (const std::exception &e) {
|
||||
LOG(ERROR, "Crashed: {}", e.what());
|
||||
} catch (...) {
|
||||
|
Loading…
Reference in New Issue
Block a user