git: Fix order-of-operations error with exception handling.

BUG:331155
FIXED-IN:1.16
wilder
Michael Pyne 12 years ago
parent 8b3790a302
commit 0cf9e1bb03
  1. 2
      modules/ksb/Updater/Git.pm

@ -93,7 +93,7 @@ sub clone
my $result = eval { $self->installGitSnapshot() };
if (my $e = had_an_exception() || !$result) {
if ((my $e = had_an_exception()) || !$result) {
warning($e->message()) if $e;
if (0 != log_command($module, 'git-clone', ['git', 'clone', @args])) {
croak_runtime("Failed to make initial clone of $module");

Loading…
Cancel
Save