From 7684fc455a72323cd4230fd0a151aed065df48c3 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Tue, 1 Oct 2019 13:29:06 +0200 Subject: [PATCH] Improve index.php error message for a missing 'vendor/autoload.php' --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 45ecdd2..0d13d6d 100644 --- a/index.php +++ b/index.php @@ -18,7 +18,11 @@ if (is_file(__DIR__ . '/vendor/autoload.php')) { // composer dependency package require_once(__DIR__ . '/../../../vendor/autoload.php'); } 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