summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
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 /file.c
parent926277bf826127c65689ddf01f94e23d538a3b8b (diff)
Do not include a backtick in error messages and backtraces
[Feature #16495]
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file.c b/file.c
index e5bca9c809..dbc34b1085 100644
--- a/file.c
+++ b/file.c
@@ -3666,7 +3666,7 @@ rb_default_home_dir(VALUE result)
* lookup by getuid() has a chance of succeeding.
*/
if (NIL_P(login_name)) {
- rb_raise(rb_eArgError, "couldn't find login name -- expanding `~'");
+ rb_raise(rb_eArgError, "couldn't find login name -- expanding '~'");
}
# endif /* !defined(HAVE_GETPWUID_R) && !defined(HAVE_GETPWUID) */
@@ -3674,7 +3674,7 @@ rb_default_home_dir(VALUE result)
if (NIL_P(pw_dir)) {
pw_dir = rb_getpwdiruid();
if (NIL_P(pw_dir)) {
- rb_raise(rb_eArgError, "couldn't find home for uid `%ld'", (long)getuid());
+ rb_raise(rb_eArgError, "couldn't find home for uid '%ld'", (long)getuid());
}
}
@@ -3685,7 +3685,7 @@ rb_default_home_dir(VALUE result)
}
#endif /* defined HAVE_PWD_H */
if (!dir) {
- rb_raise(rb_eArgError, "couldn't find HOME environment -- expanding `~'");
+ rb_raise(rb_eArgError, "couldn't find HOME environment -- expanding '~'");
}
return copy_home_path(result, dir);
}