Fix exit code for when the password is wrong

This commit is contained in:
Sebastian Messmer 2018-02-02 06:35:49 -08:00
parent 5948f63fc8
commit cab495f3ac

View File

@ -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 (...) {