git.cweiske.de
/
bdrem.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load config file from different locations, including phar
[bdrem.git]
/
src
/
bdrem
/
UserInterface.php
diff --git
a/src/bdrem/UserInterface.php
b/src/bdrem/UserInterface.php
index 4e27d5da12715475e61e2d6ed0c5509965e785be..9fd4d699ccb0757497e5cd99c912337d5dd5654a 100644
(file)
--- a/
src/bdrem/UserInterface.php
+++ b/
src/bdrem/UserInterface.php
@@
-17,7
+17,10
@@
abstract class UserInterface
$this->handleCommands($res);
if (!$this->config->cfgFileExists) {
$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();
}
$source = $this->config->loadSource();