summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-07-06 16:34:28 +0200
committerBenoit Daloze <eregontp@gmail.com>2023-07-06 18:27:13 +0200
commit055f7219bc4ace48270b09630626305784d5a87e (patch)
tree08868c111f4628a8605bfcdf11dd7105d12af13e /variable.c
parent9ee1877e4ab535253b4f61302b9102d20e11db5a (diff)
Improve ArgumentError message for Module#set_temporary_name
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8035
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 79ff8c459c..750ff04e1d 100644
--- a/variable.c
+++ b/variable.c
@@ -230,7 +230,7 @@ rb_mod_set_temporary_name(VALUE mod, VALUE name)
}
if (is_constant_path(name)) {
- rb_raise(rb_eArgError, "name must not be valid constant path");
+ rb_raise(rb_eArgError, "the temporary name must not be a constant path to avoid confusion");
}
// Set the temporary classpath to the given name: