cephfs/volumecache: fixed error msg

This commit is contained in:
gman 2018-04-20 16:24:13 +02:00
parent f6f8624259
commit 77469c8370

View File

@ -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