feat(interface-types) Use better errors.

The new `errors` module contains structure to represent errors,
instead of using basic strings. The first usage is in the interpreter
itself.
This commit is contained in:
Ivan Enderlin
2020-03-10 15:41:49 +01:00
parent 8bd3345a79
commit 864ac79123
13 changed files with 500 additions and 207 deletions

View File

@ -122,7 +122,7 @@ macro_rules! test_executable_instruction {
assert!(run.is_err());
let error = run.unwrap_err();
let error = run.unwrap_err().to_string();
assert_eq!(error, String::from($error));
}