mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
cephfs/volumecache: fixed error msg
This commit is contained in:
parent
f6f8624259
commit
77469c8370
@ -103,7 +103,7 @@ func (vc *volumeCache) insert(ent *volumeCacheEntry) error {
|
||||
|
||||
e := json.NewEncoder(f)
|
||||
if err = e.Encode(ent); err != nil {
|
||||
return fmt.Errorf("failed to encode cache entry for volume %s: %v", ent.Identifier.id)
|
||||
return fmt.Errorf("failed to encode cache entry for volume %s: %v", ent.Identifier.id, err)
|
||||
}
|
||||
|
||||
vc.entries[ent.Identifier.uuid] = ent
|
||||
|
Loading…
Reference in New Issue
Block a user