Skip to content

Commit ec01a65

Browse files
committed
Show the reason for the download failure
1 parent 717ca73 commit ec01a65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Command/FixerApplication.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ private function downloadPhar(
381381
fwrite($pharPathResource, $chunk);
382382
$progressBar->setProgress($bytes);
383383
});
384+
}, static function (\Throwable $e) use ($output): void {
385+
$output->writeln(sprintf('<fg=red>Could not download the PHPStan Pro executable:</> %s', $e->getMessage()));
384386
});
385387

386388
$loop->run();

0 commit comments

Comments
 (0)