Log message when path unavailable (#4059)

* issue #3986 -  Changed [file path init fail error message] clearer

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: Junsu An <anjjunsu@gmail.com>
pull/4062/head
Sally MacFarlane 2 years ago committed by GitHub
parent 27fc468624
commit 2751b3cb1c
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

@ -146,7 +146,9 @@ public class RocksDBKeyValueStorageFactory implements KeyValueStorageFactory {
databaseVersion = readDatabaseVersion(commonConfiguration);
} catch (final IOException e) {
final String message =
"Failed to retrieve the RocksDB database meta version: " + e.getMessage();
"Failed to retrieve the RocksDB database meta version: "
+ e.getMessage()
+ " could not be found. You may not have the appropriate permission to access the item.";
throw new StorageException(message, e);
}
isSegmentIsolationSupported = databaseVersion >= 1;

Loading…
Cancel
Save