diff options
author | Urban Müller | 2017-07-20 16:46:03 +0200 |
---|---|---|
committer | Urban Müller | 2017-07-20 16:46:03 +0200 |
commit | f3d1953bbcec5e4125868c75a249f341d36a987a (patch) | |
tree | d67c8ba7eea11ce0ce316b01c000d9273ccf5f9e /it_url.class | |
parent | 469007ad4be97726412d9ccb502d38a629406653 (diff) | |
download | itools-f3d1953bbcec5e4125868c75a249f341d36a987a.tar.gz itools-f3d1953bbcec5e4125868c75a249f341d36a987a.tar.bz2 itools-f3d1953bbcec5e4125868c75a249f341d36a987a.zip |
more verbose error message
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
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)? { |