Skip to content

Commit b659654

Browse files
committed
Update logging of errors.
1 parent 00d1218 commit b659654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

container_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func Test_Container_Syslog(t *testing.T) {
5959
return
6060
}
6161
if err := container.Close(); err != nil {
62-
t.Errorf("Closing the syslog container returned '%s'", err)
62+
t.Errorf("Closing the syslog container returned '%v'", err)
6363
}
6464
log.Println("Testing")
6565
fp, err := os.Open(logFilename)
@@ -69,6 +69,6 @@ func Test_Container_Syslog(t *testing.T) {
6969
if err == nil {
7070
t.Errorf("Logging created a file '%s' but should have logged to syslog", logFilename)
7171
} else if !os.IsNotExist(err) {
72-
t.Errorf("Logfile '%s' could not be opened but should not exist: '%s'", logFilename, err)
72+
t.Errorf("Logfile '%s' could not be opened but should not exist: '%v'", logFilename, err)
7373
}
7474
}

0 commit comments

Comments
 (0)