File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,8 +244,10 @@ protected function prepareRepository(): self
244244 */
245245 protected function requireStarterKit (): self
246246 {
247+ $ error = null ;
248+
247249 spin (
248- function () {
250+ function () use (& $ error ) {
249251 $ version = $ this ->branch ;
250252
251253 // Allow dev stability when installing from VCS repo without tagged releases
@@ -265,12 +267,16 @@ function () {
265267 try {
266268 Composer::withoutQueue ()->throwOnFailure ()->require ($ package );
267269 } catch (ProcessException $ exception ) {
268- $ this -> rollbackWithError ( " Error installing starter kit [ { $ this -> package } ]. " , $ exception-> getMessage ()) ;
270+ $ error = $ exception ;
269271 }
270272 },
271273 "Preparing starter kit [ {$ this ->package }]... "
272274 );
273275
276+ if ($ error ) {
277+ $ this ->rollbackWithError ("Error installing starter kit [ {$ this ->package }]. " , $ error ->getMessage ());
278+ }
279+
274280 return $ this ;
275281 }
276282
You can’t perform that action at this time.
0 commit comments