From 76289956273f81c8906d87bb8f48b8d63f6d16a8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 12 Oct 2018 15:48:39 -0700 Subject: [PATCH] pkg/asset/store: Use '%q' for formatting quoted strings This saves us a few characters and gives us better handling when the string values themselves contain quotes (although only the former matters much in this case). The old manual quoting is from 971eea9f (pkg/asset: Save/Load functinality for assets into a state file, 2018-10-11, #388). --- pkg/asset/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/asset/store.go b/pkg/asset/store.go index c9b63be5ad6..bc616cbbb5d 100644 --- a/pkg/asset/store.go +++ b/pkg/asset/store.go @@ -113,7 +113,7 @@ func (s *StoreImpl) fetch(asset Asset, indent string) error { logrus.Debugf("%sLooking up asset from state file: %s", indent, reflect.TypeOf(asset).String()) ok, err := s.GetStateAsset(asset) if err != nil { - return errors.Wrapf(err, "failed to unmarshal asset '%s' from state file '%s'", asset.Name(), stateFileName) + return errors.Wrapf(err, "failed to unmarshal asset %q from state file %q", asset.Name(), stateFileName) } if ok { logrus.Debugf("%sAsset found in state file", indent)