Display the error output in the thrown exception

main
Elendev 6 years ago
parent 5c2b34a1af
commit ea5644281a

@ -63,9 +63,15 @@ class Hg
if (0 === $this->process->execute($command)) { if (0 === $this->process->execute($command)) {
return; return;
} }
$error = $this->process->getErrorOutput();
} else {
$error = 'The given URL (' . $url . ') does not match the required format (http(s)://(username:password@)example.com/path-to-repository)';
} }
$this->throwException('Failed to clone ' . $url . ', aborting', $url);
$this->throwException('Failed to clone ' . $url . ', ' . "\n\n" . $error, $url);
} }

Loading…
Cancel
Save