summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-12 18:41:18 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-12 18:41:18 +0900
commitbbb088234395efda23540d30ab5d1cb40f220d82 (patch)
tree4f66588878264c0d2a17529629d7d183d6a49d29 /src/array.c
parentd4ff92bcf65ce140495014f40d22b93a1b1fb957 (diff)
downloadmruby-bbb088234395efda23540d30ab5d1cb40f220d82.tar.gz
mruby-bbb088234395efda23540d30ab5d1cb40f220d82.zip
Modifying frozen objects will raise `FrozenError`.
`FrozenError` is a subclass of `RuntimeError` which used to be raised. [Ruby2.5]
Diffstat (limited to 'src/array.c')
-rw-r--r--src/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c
index 47a582ffc..285e48a0f 100644
--- a/src/array.c
+++ b/src/array.c
@@ -114,7 +114,7 @@ static void
ary_modify_check(mrb_state *mrb, struct RArray *a)
{
if (MRB_FROZEN_P(a)) {
- mrb_raise(mrb, E_RUNTIME_ERROR, "can't modify frozen array");
+ mrb_raise(mrb, E_FROZEN_ERROR, "can't modify frozen array");
}
}