mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
Improve error reporting on recovery errors
This commit is contained in:
parent
947d15fed8
commit
52df2fad55
@ -27,7 +27,7 @@ func CheckAndRecover(path string, cfg *config.Config) error {
|
||||
f := dfs[len(dfs)-1]
|
||||
recovered, err := recoverDatafile(f, cfg)
|
||||
if err != nil {
|
||||
return fmt.Errorf("recovering data file")
|
||||
return fmt.Errorf("error recovering data file: %s", err)
|
||||
}
|
||||
if recovered {
|
||||
if err := os.Remove(filepath.Join(path, "index")); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user