If syscall.Exec() fails, print why
This commit is contained in:
parent
8be1fef464
commit
16f1f8b71d
|
@ -85,7 +85,7 @@ func (proxy *Proxy) dropPrivilege(userStr string, fds []*os.File) {
|
||||||
dlog.Fatal("Unable to reassign descriptor")
|
dlog.Fatal("Unable to reassign descriptor")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
syscall.Exec(path, args, os.Environ())
|
err := syscall.Exec(path, args, os.Environ())
|
||||||
dlog.Fatalf("Unable to reexecute [%s]", path)
|
dlog.Fatalf("Unable to reexecute [%s]: [%s]", path, err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue