Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #63 from KSP-CKAN/fix/error-parsing
Browse files Browse the repository at this point in the history
Capture all Netkan error text after first hyphen
  • Loading branch information
techman83 committed May 6, 2018
2 parents 81751de + 49e3508 commit eab96a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/KSP_CKAN/Tools/NetKAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ method _check_lite {
method _parse_error($error) {
my $return;
if ($error =~ /^\d+.\[\d+\].FATAL/m) {
$error =~ m{FATAL.+.-.(.+)}m;
$error =~ m{FATAL.+?.-.(.+)}m;
$return = $1;
} else {
$error =~ m{^\[ERROR\].(.+)}m;
Expand Down

0 comments on commit eab96a9

Please sign in to comment.