diff options
author | Jack Lloyd <[email protected]> | 2019-05-24 03:45:29 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-24 03:45:29 -0400 |
commit | f5c0d868f685c5e67c164b03cb8129985fd56bee (patch) | |
tree | e156f40e3566493e9469cc56b41e794a66e8daca /src/lib/ffi/ffi.cpp | |
parent | daa0e6f5af59135f0049ebdd7b666b13bd6b3224 (diff) | |
parent | 9e5ddd2358d07859da54365bca04bd71a938e68e (diff) |
Merge GH #1971 Add error_type for database error
Diffstat (limited to 'src/lib/ffi/ffi.cpp')
-rw-r--r-- | src/lib/ffi/ffi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp index 4fe1d8c71..bd05943e9 100644 --- a/src/lib/ffi/ffi.cpp +++ b/src/lib/ffi/ffi.cpp @@ -33,6 +33,7 @@ int ffi_map_error_type(Botan::ErrorType err) { case Botan::ErrorType::Unknown: return BOTAN_FFI_ERROR_UNKNOWN_ERROR; + case Botan::ErrorType::SystemError: case Botan::ErrorType::IoError: case Botan::ErrorType::OpenSSLError: @@ -42,6 +43,7 @@ int ffi_map_error_type(Botan::ErrorType err) case Botan::ErrorType::ZlibError: case Botan::ErrorType::Bzip2Error: case Botan::ErrorType::LzmaError: + case Botan::ErrorType::DatabaseError: return BOTAN_FFI_ERROR_SYSTEM_ERROR; case Botan::ErrorType::NotImplemented: |