-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toJSON: re-throw serialization exception
- Loading branch information
Philipp Otterbein
committed
Dec 31, 2024
1 parent
61c3559
commit bc742b6
Showing
4 changed files
with
17 additions
and
1 deletion.
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 @@ | ||
error: | ||
… while calling the 'toJSON' builtin | ||
at /pwd/lang/eval-fail-toJSON-non-utf-8.nix:1:1: | ||
1| builtins.toJSON (builtins.readFile ./eval-fail-toJSON-non-utf-8.nix) + "_invalid UTF-8: �_" | ||
| ^ | ||
2| | ||
|
||
error: JSON serialization error: [json.exception.type_error.316] invalid UTF-8 byte at index 88: 0xFF |
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 @@ | ||
builtins.toJSON (builtins.readFile ./eval-fail-toJSON-non-utf-8.nix) + "_invalid UTF-8: ÿ_" |