]> git.donarmstrong.com Git - perltidy.git/commitdiff
remove some fixed package names from error messages
authorSteve Hancock <perltidy@users.sourceforge.net>
Tue, 15 Nov 2022 02:35:18 +0000 (18:35 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Tue, 15 Nov 2022 02:35:18 +0000 (18:35 -0800)
lib/Perl/Tidy.pm
lib/Perl/Tidy/Formatter.pm
lib/Perl/Tidy/Tokenizer.pm
lib/Perl/Tidy/VerticalAligner.pm

index 88f7c43ef002f233fa0bcbbb86f6c7a86f1a3b67..1fd935a922cab67f81c1690feeb2d13f5f90a24e 100644 (file)
@@ -651,6 +651,7 @@ EOM
         my ( $package0, $filename0, $line0, $subroutine0 ) = caller(0);
         my ( $package1, $filename1, $line1, $subroutine1 ) = caller(1);
         my ( $package2, $filename2, $line2, $subroutine2 ) = caller(2);
+        my $pkg = __PACKAGE__;
 
         my $input_stream_name = $rstatus->{'input_name'};
         $input_stream_name = '(unknown)' unless ($input_stream_name);
@@ -662,7 +663,7 @@ in file '$filename1'
 which was called from line $line1 of sub '$subroutine2'
 Message: '$msg'
 This is probably an error introduced by a recent programming change.
-Perl::Tidy.pm reports VERSION='$VERSION'.
+$pkg reports VERSION='$VERSION'.
 ==============================================================================
 EOM
 
index 51644838569c6d69e0f594a192e9173ad96f4ab7..f09a4725c747154ae4f5f1c70ac2aba8917feddf 100644 (file)
@@ -107,6 +107,8 @@ sub Fault {
     my ( $package0, $filename0, $line0, $subroutine0 ) = caller(0);
     my ( $package1, $filename1, $line1, $subroutine1 ) = caller(1);
     my ( $package2, $filename2, $line2, $subroutine2 ) = caller(2);
+    my $pkg = __PACKAGE__;
+
     my $input_stream_name = get_input_stream_name();
 
     Die(<<EOM);
@@ -117,7 +119,7 @@ in file '$filename1'
 which was called from line $line1 of sub '$subroutine2'
 Message: '$msg'
 This is probably an error introduced by a recent programming change.
-Perl::Tidy::Formatter.pm reports VERSION='$VERSION'.
+$pkg reports VERSION='$VERSION'.
 ==============================================================================
 EOM
 
index 41c684afb4498f88128553e126948e6eedb6f081..a2cb76fab4639a69b850af3ebdc6d78a5ae13e95 100644 (file)
@@ -262,6 +262,8 @@ sub Fault {
     my ( $package0, $filename0, $line0, $subroutine0 ) = caller(0);
     my ( $package1, $filename1, $line1, $subroutine1 ) = caller(1);
     my ( $package2, $filename2, $line2, $subroutine2 ) = caller(2);
+    my $pkg = __PACKAGE__;
+
     my $input_stream_name = get_input_stream_name();
 
     Die(<<EOM);
@@ -272,7 +274,7 @@ in file '$filename1'
 which was called from line $line1 of sub '$subroutine2'
 Message: '$msg'
 This is probably an error introduced by a recent programming change.
-Perl::Tidy::Tokenizer.pm reports VERSION='$VERSION'.
+$pkg reports VERSION='$VERSION'.
 ==============================================================================
 EOM
 
index a1fcc1e68aaf7858059ea2651ad184f1f4929c0f..d5d8118307f0936842b8f4776d6297c55e52b2f5 100644 (file)
@@ -101,6 +101,8 @@ sub Fault {
     my ( $package0, $filename0, $line0, $subroutine0 ) = caller(0);
     my ( $package1, $filename1, $line1, $subroutine1 ) = caller(1);
     my ( $package2, $filename2, $line2, $subroutine2 ) = caller(2);
+    my $pkg = __PACKAGE__;
+
     my $input_stream_name = get_input_stream_name();
 
     Die(<<EOM);
@@ -111,7 +113,7 @@ in file '$filename1'
 which was called from line $line1 of sub '$subroutine2'
 Message: '$msg'
 This is probably an error introduced by a recent programming change.
-Perl::Tidy::VerticalAligner.pm reports VERSION='$VERSION'.
+$pkg reports VERSION='$VERSION'.
 ==============================================================================
 EOM