load config file from different locations, including phar
[bdrem.git] / src / bdrem / UserInterface.php
index 4e27d5d..9fd4d69 100644 (file)
@@ -17,7 +17,10 @@ abstract class UserInterface
             $this->handleCommands($res);
 
             if (!$this->config->cfgFileExists) {
-                throw new \Exception('No config file found');
+                throw new \Exception(
+                    "No config file found. Looked at the following places:\n"
+                    . '- ' . implode ("\n- ", $this->config->cfgFiles)
+                );
             }
 
             $source = $this->config->loadSource();