Commit 2160bb23 authored by Kali Kaneko's avatar Kali Kaneko Committed by Kali Kaneko

[feat] add debug info to bitmask-root call

parent 2266edbe
Pipeline #25677 passed with stages
in 8 minutes and 53 seconds
......@@ -191,9 +191,11 @@ func runBitmaskRoot(arg ...string) error {
}
arg = append([]string{bitmaskRoot}, arg...)
cmd := exec.Command("pkexec", arg...)
err = cmd.Run()
out, err := exec.Command("pkexec", arg...).Output()
if err != nil {
log.Println("Error while running bitmask-root:")
log.Println("args: ", arg)
log.Println("output: ", string(out))
return err
}
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment