update error message

parent 799852d6
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* *
* 1 * 1
* 2 * 2
* FiberError: dead fiber called * resuming dead fiber (RuntimeError)
* *
* The <code>Fiber#resume</code> method accepts an arbitrary number of * The <code>Fiber#resume</code> method accepts an arbitrary number of
* parameters, if it is the first call to <code>resume</code> then they * parameters, if it is the first call to <code>resume</code> then they
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
* *
* 12 * 12
* 14 * 14
* FiberError: dead fiber called * resuming dead fiber (RuntimeError)
* *
*/ */
static mrb_value static mrb_value
...@@ -163,7 +163,7 @@ fiber_resume(mrb_state *mrb, mrb_value self) ...@@ -163,7 +163,7 @@ fiber_resume(mrb_state *mrb, mrb_value self)
return c->ci->proc->env->stack[0]; return c->ci->proc->env->stack[0];
} }
if (c->ci == c->cibase) { if (c->ci == c->cibase) {
mrb_raise(mrb, E_RUNTIME_ERROR, "resuming dead Fiber"); mrb_raise(mrb, E_RUNTIME_ERROR, "resuming dead fiber");
} }
c->prev = mrb->c; c->prev = mrb->c;
mrb->c = c; mrb->c = c;
...@@ -188,7 +188,7 @@ fiber_yield(mrb_state *mrb, mrb_value self) ...@@ -188,7 +188,7 @@ fiber_yield(mrb_state *mrb, mrb_value self)
int len; int len;
if (!c->prev) { if (!c->prev) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "can't yield from root Fiber"); mrb_raise(mrb, E_ARGUMENT_ERROR, "can't yield from root fiber");
} }
mrb_get_args(mrb, "*", &a, &len); mrb_get_args(mrb, "*", &a, &len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment