Skip to content

Commit

Permalink
pkg/asset/store: Use '%q' for formatting quoted strings
Browse files Browse the repository at this point in the history
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 971eea9
(pkg/asset: Save/Load functinality for assets into a state file,
2018-10-11, #388).
  • Loading branch information
wking committed Oct 12, 2018
1 parent f25e53a commit 7628995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/asset/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7628995

Please sign in to comment.