Fix a reader error format
This commit is contained in:
@@ -112,7 +112,10 @@ class Reader {
|
|||||||
case Some(exp):
|
case Some(exp):
|
||||||
exp;
|
exp;
|
||||||
case None:
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user