Improve index.php error message for a missing 'vendor/autoload.php'

This commit is contained in:
Daniel Rudolf 2019-10-01 13:29:06 +02:00
parent 92a8a299f8
commit 7684fc455a
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -18,7 +18,11 @@ if (is_file(__DIR__ . '/vendor/autoload.php')) {
// composer dependency package // composer dependency package
require_once(__DIR__ . '/../../../vendor/autoload.php'); require_once(__DIR__ . '/../../../vendor/autoload.php');
} else { } else {
die("Cannot find 'vendor/autoload.php'. Run `composer install`."); die(
"Cannot find 'vendor/autoload.php'. If you're using a composer-based Pico install, run `composer install`. "
. "If you're rather trying to use one of Pico's pre-built release packages, make sure to download Pico's "
. "latest release package named 'pico-release-v*.tar.gz' (don't download a source code package)."
);
} }
// instance Pico // instance Pico