-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clar/sandbox: convert to use
clar_abort()
The function `clar_sandbox()` can fail either because it failed to build a sandbox path or because it failed to change directories into it. The error reporting happens at the callsite of this function though, where we are unable to distinguish those two root causes. Adapt the code to instead perform error handling via `clar_abort()` in `clar_sandbox()` itself. This gives us direct access to the root cause. Callers do not need to check for errors anymore.
- Loading branch information
Showing
2 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters