More detailed error reporting if key derivation fails

This commit is contained in:
Sebastian Messmer 2016-10-02 11:01:14 +02:00
parent 2c4b9c84f9
commit bd74a5b762
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Fixed bugs:
Improvements:
* Allow building with -DCRYFS_UPDATE_CHECKS=off, which will create an executable with disabled update checks (the alternative to disable them in the environment also still works).
* Automatically disable update checks when running in noninteractive mode.
* More detailed error reporting if key derivation fails
Compatibility:
* Compatible with libcurl version >= 7.50.0, and <= 7.21.6 (tested down to 7.19.0)

View File

@ -28,7 +28,7 @@ namespace cpputils {
_config.N(), _config.r(), _config.p(),
static_cast<uint8_t*>(destination), size);
if (errorcode != 0) {
throw std::runtime_error("Error running scrypt key derivation.");
throw std::runtime_error("Error running scrypt key derivation. Error code: "+std::to_string(errorcode));
}
}