diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-08-13 16:49:44 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-08-13 16:49:44 +0400 |
commit | 83e9d6a62ae2a0a401be9d12b315f6e6bfb20e04 (patch) | |
tree | 2e21c11427df09baae252926071f7bc362fa5254 | |
parent | 6d9323b0ec8ad3d71548de1cf22ddca36f43465c (diff) |
Better debug output for forum debugging http://forum.piwik.org/read.php?2,117670
-rw-r--r-- | core/Console.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Console.php b/core/Console.php index 1c81a1a9e6..08e0e1d0ac 100644 --- a/core/Console.php +++ b/core/Console.php @@ -101,7 +101,8 @@ class Console extends Application private function checkCompatibility() { if (Common::isPhpCgiType()) { - echo 'Piwik Console is known to be not compatible with PHP-CGI. Please execute console using PHP-CLI. For instance "/usr/bin/php-cli console ..."'; + echo 'Piwik Console is known to be not compatible with PHP-CGI (you are using '.php_sapi_name().'). ' . + 'Please execute console using PHP-CLI. For instance "/usr/bin/php-cli console ..."'; echo "\n"; exit(1); } |