chiark / gitweb /
tests/filter/extract-doctests: Improve an error message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jan 2020 13:50:32 +0000 (13:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jan 2020 13:59:41 +0000 (13:59 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/extract-doctests

index d16aa6cfbee296073d3a5be0b0758d0faad67257..a617b85789df29e9238124914b8720d253daa9c3 100755 (executable)
@@ -64,7 +64,7 @@ while (<>) {
            $e->{Out} .= ' '.$&;
        } elsif (m/^$/) {
        } else {
            $e->{Out} .= ' '.$&;
        } elsif (m/^$/) {
        } else {
-           confess "unk rhs $_ ?";
+           confess "unk rhs $_ (In=\"$e->{In}\" out=\"$e->{Out}\"?";
        }
        $e->{CQ} = $in_changequote;
        # adhoc: rely on this specific section title
        }
        $e->{CQ} = $in_changequote;
        # adhoc: rely on this specific section title