Permalink
Browse files

Better error message for un-readable imports.

  • Loading branch information...
1 parent 79b759d commit 9dc087f64371c772a2aa36284623185e76ed8c50 @peteboere committed Nov 3, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/CssCrush/Importer.php
@@ -76,8 +76,8 @@ public function collate()
// If unsuccessful getting import contents continue with the import line removed.
$import->content = @file_get_contents($import->path);
if ($import->content === false) {
-
- notice("Import file '{$import->url->value}' not found");
+ notice("@import '{$import->url->value}' " .
+ (! is_readable($import->path) ? 'is not readable' : 'does not exist'));
$str = substr_replace($str, '', $match_start, $match_len);
continue;
}

0 comments on commit 9dc087f

Please sign in to comment.