Error Messaging Redesign
This commit contains the following: * New data types to support full tracebacks * New traceback data type used across stl and ast * Updates to tests * fixes for error messaging in sym and some stl functions
This commit is contained in:
parent
91ad4eed12
commit
789349df48
24 changed files with 837 additions and 374 deletions
|
|
@ -81,7 +81,8 @@ mod eval_tests {
|
|||
let doc_tree = lex(&test_doc).unwrap();
|
||||
match eval(&doc_tree, &mut syms) {
|
||||
Err(e) => {
|
||||
assert_eq!(e, "error in call to undefined: undefined symbol: undefined")
|
||||
assert_eq!(e.0.first().unwrap().message,
|
||||
"(is an undefined symbol)")
|
||||
}
|
||||
|
||||
Ok(reduced) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue