Skip to content

Commit

Permalink
antdencli 处理调用返回空数组的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
tonygitworld committed Sep 11, 2020
1 parent 6e2d71a commit 4b5f101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MYDan/AntDen/Cli.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sub _rcall

my $res = $result{$api} || '';
die "call fail: $res" unless $res =~ s/--- 0$//;
die "[Error]$res" if $res !~ /^---\n/;
die "[Error]$res" if $res !~ /^---/;
return $res;
}

Expand Down

0 comments on commit 4b5f101

Please sign in to comment.