From 77469c83706053d65f9a3584a7bddd559e172401 Mon Sep 17 00:00:00 2001 From: gman Date: Fri, 20 Apr 2018 16:24:13 +0200 Subject: [PATCH] cephfs/volumecache: fixed error msg --- pkg/cephfs/volumecache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cephfs/volumecache.go b/pkg/cephfs/volumecache.go index 86be5dfa4..475cb6471 100644 --- a/pkg/cephfs/volumecache.go +++ b/pkg/cephfs/volumecache.go @@ -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