2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

phaul: print a message from error objects

It can help to understand a error.

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Andrei Vagin
2017-10-18 02:59:17 +03:00
parent 98888ec773
commit 08a0555ea5

View File

@@ -146,13 +146,13 @@ func main() {
pid, _ := strconv.Atoi(os.Args[1])
fds, err := syscall.Socketpair(syscall.AF_LOCAL, syscall.SOCK_STREAM, 0)
if err != nil {
fmt.Printf("Can't make socketpair\n")
fmt.Printf("Can't make socketpair: %v\n", err)
return
}
err = prepareImages()
if err != nil {
fmt.Printf("Can't prepare dirs for images\n")
fmt.Printf("Can't prepare dirs for images: %v\n", err)
return
}
@@ -180,8 +180,7 @@ func main() {
fmt.Printf("Migrate\n")
err = cln.Migrate()
if err != nil {
fmt.Printf("Failed: ")
fmt.Print(err)
fmt.Printf("Failed: %v\n", err)
return
}