Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit 19d53de

Browse files
committed
feature #131 Add previous exception for some 'unknown errors' (Pierstoval)
This PR was merged into the 1.0-dev branch. Discussion ---------- Add previous exception for some 'unknown errors' At the moment, we don't have that many clues when people can't install Symfony and when we can't guess what is the problem with the backtrace. This PR allows debugging easier, especially when Distill does throw an exception. This is related to #129 Commits ------- a2f6c6d Add previous exception for some 'unknown errors'
2 parents 265d4e6 + a2f6c6d commit 19d53de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Installer/DownloadCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function download()
135135
"There was an error downloading %s from symfony.com server:\n%s",
136136
$this->getDownloadedApplicationType(),
137137
$e->getMessage()
138-
));
138+
), null, $e);
139139
}
140140
}
141141

@@ -192,7 +192,7 @@ protected function extract()
192192
"To solve this issue, check the permissions of the %s directory and\n".
193193
"try executing this command again:\n%s",
194194
$this->getDownloadedApplicationType(), getcwd(), $this->getExecutedCommand()
195-
));
195+
), null, $e);
196196
}
197197

198198
if (!$extractionSucceeded) {

0 commit comments

Comments
 (0)