}
}
else {
- return { error => join "\n", @lines };
+ return { __error__ => join "\n", @lines };
}
}
return { branches => \%branch };
sub _find_commits {
my ($self, $dir, $local, $remote) = @_;
- return { error => "No remote" }
+ return { __error__ => "No remote" }
unless defined $remote;
local $ENV{GIT_DIR} = $dir;
my @lines = lines_from_command
sub _find_changes {
my ($self, $dir, $local, $remote) = @_;
- return { error => "No remote" }
+ return { __error__ => "No remote" }
unless defined $remote;
local $ENV{GIT_DIR} = $dir;
my @lines = lines_from_command
my ($code) = @_;
my $result = eval { $code->() };
if (my $error = $@) {
- return { error => $error->message }
+ return { __error__ => $error->message }
if is_report_exception $error;
die $@;
}