mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-19 07:32:26 +03:00
New error for converting AST to JSON value
This commit is contained in:
parent
0e96bf8d7d
commit
3236351d72
@ -122,4 +122,13 @@ create_errors!(
|
||||
msg: format!("failed to resolve import: '{}'", name),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when the AST fails to be represented as a JSON value.
|
||||
@backtraced
|
||||
failed_to_convert_ast_to_json_value {
|
||||
args: (error: impl ErrorArg),
|
||||
msg: format!("failed to convert ast to a json value {}", error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user