diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 19:49:49 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 19:49:49 +0100 |
| commit | 57f02d45b7e6ec65c3f2055a2cc4b2c2737167d4 (patch) | |
| tree | 8e920b3df678e1361440e4f6d32da78acf5f51f4 /src/compiler.rs | |
| parent | b1fab16befb78232d7a913f58beef639c5891e26 (diff) | |
| download | sylt-57f02d45b7e6ec65c3f2055a2cc4b2c2737167d4.tar.gz | |
actual error on invalid outer code
Diffstat (limited to 'src/compiler.rs')
| -rw-r--r-- | src/compiler.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 69ce39a..9f9d6ef 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -1737,7 +1737,8 @@ impl Compiler { (None, ..) => {} (a, b, c) => { - panic!(format!("Unknown outer token sequence: {:?} {:?} {:?}", a, b, c)); + let msg = format!("Unknown outer token sequence: {:?} {:?} {:?}", a, b, c); + error!(self, msg); } } } |
