Skip to content

Commit

Permalink
Merge pull request openshift#2340 from zerodayz/mode-mismatch-clarity
Browse files Browse the repository at this point in the history
Bug 1891825: Mode mismatch fix for confusing strings
  • Loading branch information
openshift-merge-robot authored Jan 15, 2021
2 parents c8a7446 + 5cd45b7 commit 2ce278c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2ce278c

Please sign in to comment.