aboutsummaryrefslogtreecommitdiff
path: root/src/bdrem/UserInterface.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-02-25 07:47:24 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-02-25 07:47:24 +0100
commit5f35a084b38723da7b505bc7f9b43122bc3deef5 (patch)
tree80526481ea15267f3c3516c4468c4b7b7472fc7d /src/bdrem/UserInterface.php
parent83afda94b7d5fc2be341712e2661f6095f608e0d (diff)
downloadbdrem-5f35a084b38723da7b505bc7f9b43122bc3deef5.tar.gz
bdrem-5f35a084b38723da7b505bc7f9b43122bc3deef5.zip
load config file from different locations, including phar
Diffstat (limited to 'src/bdrem/UserInterface.php')
-rw-r--r--src/bdrem/UserInterface.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bdrem/UserInterface.php b/src/bdrem/UserInterface.php
index 4e27d5d..9fd4d69 100644
--- a/src/bdrem/UserInterface.php
+++ b/src/bdrem/UserInterface.php
@@ -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();