mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix a typo: print the correct error info
This commit is contained in:
parent
8e74358117
commit
b32ac1f67b
@ -94,7 +94,7 @@ func (s *Snapshotter) save(snapshot *raftpb.Snapshot) error {
|
||||
s.lg.Warn("failed to write a snap file", zap.String("path", spath), zap.Error(err))
|
||||
rerr := os.Remove(spath)
|
||||
if rerr != nil {
|
||||
s.lg.Warn("failed to remove a broken snap file", zap.String("path", spath), zap.Error(err))
|
||||
s.lg.Warn("failed to remove a broken snap file", zap.String("path", spath), zap.Error(rerr))
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user