New error for converting AST to JSON value

This commit is contained in:
Pranav Gaddamadugu 2021-09-20 17:54:27 -07:00
parent 0e96bf8d7d
commit 3236351d72

View File

@ -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,
}
);