summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-07-20 16:46:03 +0200
committerUrban Müller2017-07-20 16:46:03 +0200
commitf3d1953bbcec5e4125868c75a249f341d36a987a (patch)
treed67c8ba7eea11ce0ce316b01c000d9273ccf5f9e
parent469007ad4be97726412d9ccb502d38a629406653 (diff)
downloaditools-f3d1953bbcec5e4125868c75a249f341d36a987a.tar.gz
itools-f3d1953bbcec5e4125868c75a249f341d36a987a.tar.bz2
itools-f3d1953bbcec5e4125868c75a249f341d36a987a.zip
more verbose error message
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 78dc769..119b1d5 100644
--- a/it_url.class
+++ b/it_url.class
@@ -513,7 +513,7 @@ function get_cache($p = array())
@mkdir(dirname($path));
if (!is_writable(dirname($path)))
- it::error(dirname($path) . " not writable");
+ it::error("parent dir not writable: " . trim(it::exec('ls -ld {dir} 2>&1', ['dir' => dirname($path)])));
if ($filemtime = it_url::_expired($path, $p['maxage'])) # Outdated(non-zero int) or non-existant(true)?
{