fix: object may be a boxed scalar
Example: IOError.unexpectedEof
This commit is contained in:
parent
95c5ccc97d
commit
2efc1855f0
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ static environment eval_cmd(parser & p) {
|
|||
if (io_result_is_error(r.raw())) {
|
||||
message_builder msg = p.mk_message(p.cmd_pos(), p.pos(), ERROR);
|
||||
object * err = io_result_get_error(r.raw());
|
||||
inc_ref(err);
|
||||
inc(err);
|
||||
object * str = lean_io_error_to_string(err);
|
||||
msg << string_to_std(str);
|
||||
msg.report();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue