diff options
author | Russ Allbery <rra@cpan.org> | 2021-09-10 17:27:40 -0700 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2021-09-10 17:27:40 -0700 |
commit | 709f8b35c2266ecdcfbc6ca270b6e063b51fe9cd (patch) | |
tree | 2592a254e0326aa7cbd0da7bef659909149dc865 /lib/App/DocKnot/Spin | |
parent | 9b9ee9912ea2ce333c6541bae0ca8a61eef2615b (diff) |
Fix warning handling from spinning thread
Teach App::DocKnot::Command to rewrite warnings as well as errors
to add the invoked command, and rely on that for warnings from
App::DocKnot::Spin::Thread.
Diffstat (limited to 'lib/App/DocKnot/Spin')
-rw-r--r-- | lib/App/DocKnot/Spin/Thread.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/DocKnot/Spin/Thread.pm b/lib/App/DocKnot/Spin/Thread.pm index 4b2e361..7080886 100644 --- a/lib/App/DocKnot/Spin/Thread.pm +++ b/lib/App/DocKnot/Spin/Thread.pm @@ -181,7 +181,7 @@ sub _fatal { sub _warning { my ($self, $problem) = @_; my (undef, $file, $lineno) = $self->{input}[-1]->@*; - warn "$0 spin:$file:$lineno: $problem\n"; + warn "$file:$lineno: $problem\n"; return; } |