summaryrefslogtreecommitdiff
path: root/dquote.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-19 12:08:06 -0600
committerKarl Williamson <khw@cpan.org>2019-03-19 12:50:49 -0600
commitccad88426c3827a98f048facac304bace92604e7 (patch)
tree0ea83deec575cc99ad4ae346bca2663955f0b5c1 /dquote.c
parentbc508755449a899a1f962877248064475fb91770 (diff)
downloadperl-ccad88426c3827a98f048facac304bace92604e7.tar.gz
Change error wording for \o{}
An empty \o{} no longer says "Number with no digits" in favor of "Empty \o{}" which is more consistent with errors raised for things like \b{}, \P{}. There is a small risk of breakage with this change, as with any diagnostic wording change. However, this construct is relatively new and rarely used, and this is a fatal error, not a warning you might want to trap on. There are no empty \o{} instances in CPAN.
Diffstat (limited to 'dquote.c')
-rw-r--r--dquote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dquote.c b/dquote.c
index 10fb2b5df0..707024493e 100644
--- a/dquote.c
+++ b/dquote.c
@@ -126,7 +126,7 @@ Perl_grok_bslash_o(pTHX_ char **s, const char * const send, UV *uv,
numbers_len = e - *s;
if (numbers_len == 0) {
(*s)++; /* Move past the } */
- *error_msg = "Number with no digits";
+ *error_msg = "Empty \\o{}";
return FALSE;
}