From 5cd45b7a5dc233688ecf83baa216cc83f5a8adf8 Mon Sep 17 00:00:00 2001 From: --get Date: Thu, 14 Jan 2021 12:02:40 +1000 Subject: [PATCH] [MCO] Mode mismatch fix for confusing strings --- pkg/daemon/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/daemon/daemon.go b/pkg/daemon/daemon.go index d174b23619..7e21483ec4 100644 --- a/pkg/daemon/daemon.go +++ b/pkg/daemon/daemon.go @@ -1530,7 +1530,7 @@ func checkFileContentsAndMode(filePath string, expectedContent []byte, mode os.F return errors.Wrapf(err, "could not stat file %q", filePath) } if fi.Mode() != mode { - return errors.Errorf("mode mismatch for file: %q; expected: %v; received: %v", filePath, mode, fi.Mode()) + return errors.Errorf("mode mismatch for file: %q; expected: %[2]v/%[2]d/%#[2]o; received: %[3]v/%[3]d/%#[3]o", filePath, mode, fi.Mode()) } contents, err := ioutil.ReadFile(filePath) if err != nil {