diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-22 22:20:24 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-22 22:20:24 -0700 |
| commit | f5b6f03c9e802702c6f5f74bc3e778f3c4d8baca (patch) | |
| tree | 9cdcf378589e4b3f55ce68f1e4fd15b9c63be7e7 /src/variable.c | |
| parent | 18fbe4d0b74aa6e787b908a5509f834c7a1d6a18 (diff) | |
| parent | 6069a33089916d7059c2bd2aeddc02a3eb440520 (diff) | |
| download | mruby-f5b6f03c9e802702c6f5f74bc3e778f3c4d8baca.tar.gz mruby-f5b6f03c9e802702c6f5f74bc3e778f3c4d8baca.zip | |
Merge pull request #505 from monaka/pr-add-unformat-mrb_raise
Change C API for raise.
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/variable.c b/src/variable.c index 74dfc02c9..e3e4c4fb5 100644 --- a/src/variable.c +++ b/src/variable.c @@ -712,7 +712,7 @@ const_get(mrb_state *mrb, struct RClass *base, mrb_sym sym) } c = c->super; } - mrb_raise(mrb, E_NAME_ERROR, "uninitialized constant %s", + mrb_raisef(mrb, E_NAME_ERROR, "uninitialized constant %s", mrb_sym2name(mrb, sym)); /* not reached */ return mrb_nil_value(); |
