Commit 72808959 authored by David Hurka's avatar David Hurka 🐬
Browse files

Move comment about unempty mount point to its code

Apparently this line was forgotten in 4574e809
parent 14fa0d7b
...@@ -171,6 +171,7 @@ FutureResult<> CryFsBackend::mount(const Device &device, ...@@ -171,6 +171,7 @@ FutureResult<> CryFsBackend::mount(const Device &device,
}; };
return return
// If we tried to mount into a non-empty location, report
err.contains("'nonempty'") ? err.contains("'nonempty'") ?
Result<>::error(Error::CommandError, Result<>::error(Error::CommandError,
i18n("The mount point directory is not empty, refusing to open the vault")) : i18n("The mount point directory is not empty, refusing to open the vault")) :
...@@ -179,7 +180,6 @@ FutureResult<> CryFsBackend::mount(const Device &device, ...@@ -179,7 +180,6 @@ FutureResult<> CryFsBackend::mount(const Device &device,
(process->exitStatus() == QProcess::NormalExit && exitCode == ExitCode::Success) ? (process->exitStatus() == QProcess::NormalExit && exitCode == ExitCode::Success) ?
Result<>::success() : Result<>::success() :
// If we tried to mount into a non-empty location, report
exitCode == ExitCode::WrongPassword ? exitCode == ExitCode::WrongPassword ?
Result<>::error(Error::BackendError, Result<>::error(Error::BackendError,
i18n("You entered the wrong password")) : i18n("You entered the wrong password")) :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment