summaryrefslogtreecommitdiff
path: root/eval.c
diff options
authorYusuke Endoh <[email protected]>2024-01-19 16:03:38 +0900
committerYusuke Endoh <[email protected]>2024-02-15 18:42:31 +0900
commit25d74b9527cd525042ad0b612b794fa331d3a318 (patch)
tree3b40adf0eb79bb5d7e81640d98dee162c35c076b /eval.c
parent926277bf826127c65689ddf01f94e23d538a3b8b (diff)
Do not include a backtick in error messages and backtraces
[Feature #16495]
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 13f4557862..c538755c7d 100644
--- a/eval.c
+++ b/eval.c
@@ -592,15 +592,15 @@ setup_exception(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE
e = rb_obj_as_string(mesg);
ec->errinfo = mesg;
if (file && line) {
- e = rb_sprintf("Exception `%"PRIsVALUE"' at %s:%d - %"PRIsVALUE"\n",
+ e = rb_sprintf("Exception '%"PRIsVALUE"' at %s:%d - %"PRIsVALUE"\n",
rb_obj_class(mesg), file, line, e);
}
else if (file) {
- e = rb_sprintf("Exception `%"PRIsVALUE"' at %s - %"PRIsVALUE"\n",
+ e = rb_sprintf("Exception '%"PRIsVALUE"' at %s - %"PRIsVALUE"\n",
rb_obj_class(mesg), file, e);
}
else {
- e = rb_sprintf("Exception `%"PRIsVALUE"' - %"PRIsVALUE"\n",
+ e = rb_sprintf("Exception '%"PRIsVALUE"' - %"PRIsVALUE"\n",
rb_obj_class(mesg), e);
}
warn_print_str(e);