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;
|
std::cout << "\nMounting filesystem. To unmount, call:\n$ fusermount -u " << options.mountDir() << "\n" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
fuse.run(options.mountDir(), options.fuseOptions());
|
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) {
|
} catch (const std::exception &e) {
|
||||||
LOG(ERROR, "Crashed: {}", e.what());
|
LOG(ERROR, "Crashed: {}", e.what());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user