summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-11-29 23:33:33 +0000
committerZefram <zefram@fysh.org>2017-11-29 23:33:33 +0000
commit40b0df696c4f45c9e0e43ec2121b53bc06a586db (patch)
tree8a45e544c9c0eff5d9c95ff4029a9f4afb657737 /pp_ctl.c
parentb1a6328e96a123f6ca713df406f01c2f4a2f2b7b (diff)
downloadperl-40b0df696c4f45c9e0e43ec2121b53bc06a586db.tar.gz
make "outside a loop" error messages consistent
The message for leaving a "when" block outside a loop had different wording from the message for performing "next" et al outside a loop. Make the "when" message consistent with the existing loop control ones.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index f378eccfec..3239d37de8 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -4651,7 +4651,7 @@ PP(pp_leavewhen)
cxix = dopoptoloop(cxstack_ix);
if (cxix < 0)
- DIE(aTHX_ "Can't leave \"when\" outside a loop");
+ DIE(aTHX_ "Can't leave \"when\" outside a loop block");
oldsp = PL_stack_base + cx->blk_oldsp;
if (gimme == G_VOID)