This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add diag_listed_as for lstat error msg
[perl5.git] / pp_sys.c
index 69612c6..ca951e8 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2754,6 +2754,7 @@ PP(pp_stat)
                Perl_ck_warner(aTHX_ packWARN(WARN_IO),
                               "lstat() on filehandle %s", gv ? GvENAME(gv) : "");
            } else if (PL_laststype != OP_LSTAT)
+               /* diag_listed_as: The stat preceding %s wasn't an lstat */
                Perl_croak(aTHX_ "The stat preceding lstat() wasn't an lstat");
        }