mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5244 from dearblue/eval-nomem
Improves out of memory messages for `eval`
This commit is contained in:
@@ -39,7 +39,7 @@ create_proc_from_string(mrb_state *mrb, const char *s, mrb_int len, mrb_value bi
|
||||
|
||||
/* only occur when memory ran out */
|
||||
if (!p) {
|
||||
mrb_raise(mrb, E_RUNTIME_ERROR, "Failed to create parser state.");
|
||||
mrb_raise(mrb, E_RUNTIME_ERROR, "Failed to create parser state (out of memory)");
|
||||
}
|
||||
|
||||
if (0 < p->nerr) {
|
||||
|
||||
Reference in New Issue
Block a user