diff --git a/core/ledger/kvledger/kv_ledger_provider.go b/core/ledger/kvledger/kv_ledger_provider.go index 2c197661de0..ae28e2ff7a2 100644 --- a/core/ledger/kvledger/kv_ledger_provider.go +++ b/core/ledger/kvledger/kv_ledger_provider.go @@ -251,10 +251,10 @@ func (p *Provider) initSnapshotDir() error { return errors.Wrapf(err, "error while deleting the dir: %s", inProgressSnapshotsPath) } if err := os.MkdirAll(inProgressSnapshotsPath, 0755); err != nil { - return errors.Wrapf(err, "error while creating the dir: %s", inProgressSnapshotsPath) + return errors.Wrapf(err, "error while creating the dir: %s, ensure peer has write access to configured ledger.snapshots.rootDir directory", inProgressSnapshotsPath) } if err := os.MkdirAll(completedSnapshotsPath, 0755); err != nil { - return errors.Wrapf(err, "error while creating the dir: %s", completedSnapshotsPath) + return errors.Wrapf(err, "error while creating the dir: %s, ensure peer has write access to configured ledger.snapshots.rootDir directory", completedSnapshotsPath) } return fileutil.SyncDir(snapshotsRootDir) }