summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-31 03:35:22 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-31 03:35:22 (GMT)
commitd9d2bbe4b92120003cc026176a3841c875378e7c (patch)
tree926e662503880ee3b9ea1c5afe50e4967eb3102d /sprintf.c
parent84d83482c8ba1b8e7002ed8ff4c6a2c00fa4ce62 (diff)
Improve error message
ref [Bug #13761] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index 0d685dd..52771eb 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -521,7 +521,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
for (t = p; t < end && *t != '%'; t++) ;
if (t + 1 == end) {
- rb_raise(rb_eArgError, "incomplete format specifier");
+ rb_raise(rb_eArgError, "incomplete format specifier; use %%%% (double %%) instead");
}
PUSH(p, t - p);
if (coderange != ENC_CODERANGE_BROKEN && scanned < blen) {