Skip to content
Snippets Groups Projects
Unverified Commit 2160bb23 authored by Kali Kaneko's avatar Kali Kaneko Committed by Kali Kaneko
Browse files

[feat] add debug info to bitmask-root call

parent 2266edbe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment