Added exception message details to error message, when read db fails (#3935)

* Added exception message details to error message, when read db fails
See ##3526

Signed-off-by: Sharad Gulati <sharad.develop@gmail.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/3950/head
sharad-develop 2 years ago committed by GitHub
parent 9704be1036
commit 0efc169005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java

@ -145,7 +145,9 @@ public class RocksDBKeyValueStorageFactory implements KeyValueStorageFactory {
try {
databaseVersion = readDatabaseVersion(commonConfiguration);
} catch (final IOException e) {
throw new StorageException("Failed to retrieve the RocksDB database meta version", e);
final String message =
"Failed to retrieve the RocksDB database meta version: " + e.getMessage();
throw new StorageException(message, e);
}
isSegmentIsolationSupported = databaseVersion >= 1;
rocksDBConfiguration =

Loading…
Cancel
Save