Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better error message if can't execute program
Without this in case poop can't exec the target the error message is not very helpful, not telling which command failed and produces a stack trace that doesn't help figuring out the issue: ``` error: AccessDenied /usr/lib/zig/lib/std/process/Child.zig:423:5: 0x104ad77 in waitPosix (poop) return self.term.?; ^ /usr/lib/zig/lib/std/process/Child.zig:300:9: 0x104adf3 in wait (poop) try self.waitPosix(); ^ /home/user/poop/src/main.zig:243:26: 0x105222a in main (poop) const term = try child.wait(); ``` This changes the output to something more useful: ``` error: Couldn't execute /etc: AccessDenied ```
- Loading branch information