test/image: print saner error messages
%#v was my bad understanding of Go's error formatting. Let's use the standard %v that gives saner and human-readable error messages. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
35d7f0b9a6
commit
9f80c2ac8e
5 changed files with 49 additions and 49 deletions
|
|
@ -22,7 +22,7 @@ func durationMin(a, b time.Duration) time.Duration {
|
|||
func killProcessCleanly(process *os.Process, timeout time.Duration) error {
|
||||
err := process.Signal(syscall.SIGTERM)
|
||||
if err != nil {
|
||||
log.Printf("cannot send SIGTERM to process, sending SIGKILL instead: %#v", err)
|
||||
log.Printf("cannot send SIGTERM to process, sending SIGKILL instead: %v", err)
|
||||
return process.Kill()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue