Fix a reader error format

This commit is contained in:
2021-01-17 19:34:37 -07:00
parent 02cc0eae49
commit 9d6325352c

View File

@@ -112,7 +112,10 @@ class Reader {
case Some(exp):
exp;
case None:
throw 'There were no expressions left in the stream at $position';
Sys.stderr().writeString('Kiss reader error!\n');
Sys.stderr().writeString(stream.position().toPrint() + ': Ran out of Kiss expressions\n');
Sys.exit(1);
return null;
};
}