X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Upper.git;a=blobdiff_plain;f=Upper.xs;h=0e36df1e98a4cbc7f5b65be2d703442e3b61d2be;hp=a002eac9a3c976727316ee64f6b8c7f344020bb2;hb=2e30a0f24d9b8f169ec974af21051e098a7d9516;hpb=6e6aa503ec0f8dc6f7c01ac956f57d34eb1f7eda 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