diff options
author | Yusuke Endoh <[email protected]> | 2024-01-19 16:03:38 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-02-15 18:42:31 +0900 |
commit | 25d74b9527cd525042ad0b612b794fa331d3a318 (patch) | |
tree | 3b40adf0eb79bb5d7e81640d98dee162c35c076b /file.c | |
parent | 926277bf826127c65689ddf01f94e23d538a3b8b (diff) |
Do not include a backtick in error messages and backtraces
[Feature #16495]
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |