From 45a3d3d43f4f7c3967f80da35435fe8a035566a7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 6 Oct 2016 15:59:57 -0700 Subject: [PATCH] image/config: Replace `'%s'` with `%q` Fewer characters for us, and safer quoting for consumers. Signed-off-by: W. Trevor King --- image/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/config.go b/image/config.go index 0f8cfaa..100d99c 100644 --- a/image/config.go +++ b/image/config.go @@ -55,7 +55,7 @@ func findConfig(w walker, d *descriptor) (*config, error) { } // check if the rootfs type is 'layers' if c.RootFS.Type != "layers" { - return fmt.Errorf("'%s' is an unknown rootfs type, MUST be 'layers'", c.RootFS.Type) + return fmt.Errorf("%q is an unknown rootfs type, MUST be 'layers'", c.RootFS.Type) } return errEOW }); err {