summaryrefslogtreecommitdiff
path: root/dquote.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-19 12:14:26 -0600
committerKarl Williamson <khw@cpan.org>2019-03-19 12:50:49 -0600
commite750debb242ae6fdd7b786405ba167620fb77a2d (patch)
tree79f42c65a6808f1ee2105d06e65a144a61b48b67 /dquote.c
parentccad88426c3827a98f048facac304bace92604e7 (diff)
downloadperl-e750debb242ae6fdd7b786405ba167620fb77a2d.tar.gz
Change error wording for empty \x{}
An empty \x{} is unfortunately legal (returning a NUL) except in the scope of "use re 'strict'". Since this is an experimental feature, things like wording changes are allowed. It is unlikely anyone is relying on the precise wording of this fatal error under 'strict', and now all the messages for similar errors are similarly worded.
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 707024493e..17857dd175 100644
--- a/dquote.c
+++ b/dquote.c
@@ -253,7 +253,7 @@ Perl_grok_bslash_x(pTHX_ char **s, const char * const send, UV *uv,
if (numbers_len == 0) {
if (strict) {
(*s)++; /* Move past the } */
- *error_msg = "Number with no digits";
+ *error_msg = "Empty \\x{}";
return FALSE;
}
*s = e + 1;