in reply to Re^2: STDERR in Test Results
in thread STDERR in Test Results
"... expected error ... Webhook Error ... Signature error ... an error displayed ..."
Originally, you repeatedly referred to an error; now you seem to have changed that to a warning. My solution traps errors, which you asked for; it doesn't trap warnings.
$ alias perle alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E +' $ perle ' my $expected_error = 1; my $got_error = 0; eval { my @rgb = qw{#ff0000 #00ff00 #0000ff}; open my $fh, "<", "nonexistent_file"; 1; } or do { $got_error = 1; }; say "\$expected_error[$expected_error] \$got_error[$got_error]"; ' Possible attempt to put comments in qw() list at -e line 6. $expected_error[1] $got_error[1]
Perhaps "warnings: Fatal Warnings" would help you.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: STDERR in Test Results
by Bod (Parson) on Jun 25, 2023 at 19:31 UTC | |
by afoken (Chancellor) on Jun 25, 2023 at 22:02 UTC | |
by Bod (Parson) on Jun 26, 2023 at 19:48 UTC | |
by afoken (Chancellor) on Jun 27, 2023 at 21:14 UTC | |
by eyepopslikeamosquito (Archbishop) on Jun 27, 2023 at 23:55 UTC | |
by bliako (Abbot) on Jul 17, 2023 at 21:59 UTC | |
by stevieb (Canon) on Jun 28, 2023 at 02:53 UTC |