App-gh
view release on metacpan or search on metacpan
lib/App/gh/Git.pm view on Meta::CPAN
on its lips; the message will have %s substituted for the command line
and %d for the exit status. This statement is useful mostly for producing
more user-friendly error messages.
In case of no exception caught the statement returns C<CODE>'s return value.
Note that this is the only auto-exported function.
=cut
sub git_cmd_try(&$) {
my ($code, $errmsg) = @_;
my @result;
my $err;
my $array = wantarray;
try {
if ($array) {
@result = &$code;
} else {
$result[0] = &$code;
}
( run in 1.101 second using v1.01-cache-2.11-cpan-49f99fa48dc )