Skip to content

Commit ace7703

Browse files
authored
fix e2e errorf formatting for 1.24 (#2809)
* fix e2e errorf formatting for 1.24 Signed-off-by: David Fridrich <fridrich.david19@gmail.com> * add % Signed-off-by: David Fridrich <fridrich.david19@gmail.com> --------- Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
1 parent 0e1be8d commit ace7703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestMain(t *testing.M) {
3232
func 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
}

0 commit comments

Comments
 (0)