diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:16:54 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:16:54 +0100 |
| commit | 9d962c5c40da12207433a6e88aa34f11d036af37 (patch) | |
| tree | 3b38502a4dc2cb1818f8282a400194937d0ac336 /library | |
| parent | 43ef60c09cc48f6b7c6dd752ab7af7c0d6071bc5 (diff) | |
More `track_caller` annotations
Diffstat (limited to 'library')
| -rw-r--r-- | library/src/compute/data.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs index e3013389..bf747ec6 100644 --- a/library/src/compute/data.rs +++ b/library/src/compute/data.rs @@ -216,6 +216,7 @@ fn convert_json(value: serde_json::Value) -> Value { } /// Format the user-facing JSON error message. +#[track_caller] fn format_json_error(error: serde_json::Error) -> String { assert!(error.is_syntax() || error.is_eof()); format!("failed to parse json file: syntax error in line {}", error.line()) |
