throw READ_ERROR when parser raised
This commit is contained in:
parent
1402a97354
commit
d810e42666
|
@ -20,7 +20,7 @@ static pic_value read_nullable(pic_state *pic, struct pic_port *port, char c);
|
||||||
static noreturn void
|
static noreturn void
|
||||||
read_error(pic_state *pic, const char *msg)
|
read_error(pic_state *pic, const char *msg)
|
||||||
{
|
{
|
||||||
pic_error(pic, msg);
|
pic_throw(pic, PIC_ERROR_READ, msg, pic_nil_value());
|
||||||
}
|
}
|
||||||
|
|
||||||
static char
|
static char
|
||||||
|
|
Loading…
Reference in New Issue