Display the error output in the thrown exception
parent
5c2b34a1af
commit
ea5644281a
|
@ -63,9 +63,15 @@ class Hg
|
|||
if (0 === $this->process->execute($command)) {
|
||||
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…
Reference in New Issue