File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func TestMain(t *testing.M) {
3232func patchOrCreateDockerConfigFile() error {
3333 userHome, err := os.UserHomeDir()
3434 if err != nil {
35- return fmt.Errorf("unable retrieve user home dir to verify default container authentication. " + err.Error())
35+ return fmt.Errorf("unable retrieve user home dir to verify default container authentication. err: %v", err.Error())
3636 }
3737 dockerConfigFile := filepath.Join(userHome, ".docker", "config.json")
3838 _, err = os.Stat(dockerConfigFile)
@@ -64,7 +64,7 @@ func createConfigAuth(dockerConfigFile string, content string) error {
6464 }
6565 _, err = f.WriteString(content)
6666 if err != nil {
67- return fmt.Errorf("unable to create .docker/config.json file" + err.Error())
67+ return fmt.Errorf("unable to create .docker/config.json file. err: %v", err.Error())
6868 }
6969 return nil
7070}
You can’t perform that action at this time.
0 commit comments