mirror of
https://github.com/vgough/encfs.git
synced 2025-02-05 20:39:46 +01:00
return 1 on failure
This commit is contained in:
parent
1afc12975b
commit
766564b55f
@ -412,15 +412,19 @@ int main(int argc, char *argv[]) {
|
||||
shared_ptr<Cipher> cipher = Cipher::New(it->name, keySize);
|
||||
if (!cipher) {
|
||||
cerr << "FAILED TO CREATE\n";
|
||||
return 1;
|
||||
} else {
|
||||
try {
|
||||
if (runTests(cipher, false))
|
||||
if (runTests(cipher, false)) {
|
||||
cerr << "OK\n";
|
||||
else
|
||||
} else {
|
||||
cerr << "FAILED\n";
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
catch (rlog::Error &er) {
|
||||
cerr << "Error: " << er.what() << "\n";
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user