X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Upper.xs;h=0e36df1e98a4cbc7f5b65be2d703442e3b61d2be;hb=57746d0b3de44a1205902e433488c8a1afe69469;hp=a002eac9a3c976727316ee64f6b8c7f344020bb2;hpb=6e6aa503ec0f8dc6f7c01ac956f57d34eb1f7eda;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Upper.xs b/Upper.xs index a002eac..0e36df1 100644 --- a/Upper.xs +++ b/Upper.xs @@ -258,7 +258,8 @@ static U8 su_op_gimme_reverse(U8 gimme) { /* --- Error messages ------------------------------------------------------ */ -static const char su_stack_smash[] = "Cannot target a scope outside of the current stack"; +static const char su_stack_smash[] = "Cannot target a scope outside of the current stack"; +static const char su_no_such_target[] = "No targetable %s scope in the current stack"; /* --- Unique context ID global storage ------------------------------------ */ @@ -2617,6 +2618,7 @@ PPCODE: XSRETURN(1); } } + warn(su_no_such_target, "subroutine"); XSRETURN_UNDEF; void @@ -2637,6 +2639,7 @@ PPCODE: XSRETURN(1); } } + warn(su_no_such_target, "eval"); XSRETURN_UNDEF; void