mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +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:
@@ -146,13 +146,13 @@ func main() {
|
|||||||
pid, _ := strconv.Atoi(os.Args[1])
|
pid, _ := strconv.Atoi(os.Args[1])
|
||||||
fds, err := syscall.Socketpair(syscall.AF_LOCAL, syscall.SOCK_STREAM, 0)
|
fds, err := syscall.Socketpair(syscall.AF_LOCAL, syscall.SOCK_STREAM, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Can't make socketpair\n")
|
fmt.Printf("Can't make socketpair: %v\n", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err = prepareImages()
|
err = prepareImages()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Can't prepare dirs for images\n")
|
fmt.Printf("Can't prepare dirs for images: %v\n", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,8 +180,7 @@ func main() {
|
|||||||
fmt.Printf("Migrate\n")
|
fmt.Printf("Migrate\n")
|
||||||
err = cln.Migrate()
|
err = cln.Migrate()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed: ")
|
fmt.Printf("Failed: %v\n", err)
|
||||||
fmt.Print(err)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user