From f3d1953bbcec5e4125868c75a249f341d36a987a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 20 Jul 2017 16:46:03 +0200 Subject: more verbose error message --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)? { -- cgit v1.2.3