Fix config loading

This commit is contained in:
Sebastian Messmer 2015-10-26 20:14:41 +01:00
parent aceeb2644f
commit 5603a8b8d1
3 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include "CryConfigEncryptor.h"
namespace cryfs {
//TODO Test
template<class Cipher>
class ConcreteCryConfigEncryptor: public CryConfigEncryptor {
public:

View File

@ -7,6 +7,7 @@
#include "kdf/Scrypt.h"
namespace cryfs {
//TODO Test
class CryConfigEncryptorFactory {
public:
template<class Cipher>

View File

@ -96,6 +96,7 @@ CryConfigFile loadOrCreateConfig(const ProgramOptions &options) {
std::cerr << "Could not load config file. Did you enter the correct password?" << std::endl;
exit(1);
}
return *config;
} catch (const std::exception &e) {
std::cerr << "Error: " << e.what() << std::endl;
exit(1);