diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-05-28 06:11:56 +0200 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-05-28 06:11:56 +0200 |
commit | c74587e30a28f01a2c7134cc254964baf8a7fa10 (patch) | |
tree | 6d2647ad3282929f737e530da51ba251e5fe9f87 /phpfspot.class.php | |
parent | b03bd4482838de77706e68f1ab3d463d23a55c7f (diff) |
explain the writeable-necessarity in the error messages.
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index 5a4c26e..df984cb 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -142,7 +142,9 @@ class PHPFSPOT { /* Check if database file is writeable */ if(!is_writeable($this->cfg->fspot_db)) { - print $this->cfg->fspot_db ." is not writeable for user ". $this->getuid() ."\n"; + print "Error: ". $this->cfg->fspot_db ." is not writeable for user ". $this->getuid() .".\n"; + print "Please fix permissions so phpfspot can create indices within the F-Spot database to" + ." speed up some database operations.\n"; exit(1); } @@ -174,13 +176,15 @@ class PHPFSPOT { /* Check if directory where the database file is stored is writeable */ if(!is_writeable(dirname($this->cfg->phpfspot_db))) { - print dirname($this->cfg->phpfspot_db) .": directory is not writeable for user ". $this->getuid() ."\n"; + print "Error: ". dirname($this->cfg->phpfspot_db) .": directory is not writeable for user ". $this->getuid() .".\n"; + print "Please fix permissions so phpfspot can create its own sqlite database to store some settings.\n"; exit(1); } /* Check if database file is writeable */ if(!is_writeable($this->cfg->phpfspot_db)) { - print $this->cfg->phpfspot_db ." is not writeable for user ". $this->getuid() ."\n"; + print "Error: ". $this->cfg->phpfspot_db ." is not writeable for user ". $this->getuid() .".\n"; + print "Please fix permissions so phpfspot can create its own sqlite database to store some settings.\n"; exit(1); } |