-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail fast and informatively for nonexistent file (#261)
* Initiate a snapshot test (non-informative failure) * Fail early with a better message * Explicitly check if `file` was provided * Reveal the filepath that we can't find * NEWS Co-authored-by: Romain Francois <[email protected]>
- Loading branch information
1 parent
3341a58
commit 322e5ee
Showing
4 changed files
with
23 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# cpp_source fails informatively for nonexistent file | ||
|
||
Code | ||
cpp_source(i_do_not_exist) | ||
Error <simpleError> | ||
Can't find `file` at this path: | ||
{NON_EXISTENT_FILEPATH} | ||
|
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