Skip to content

Commit 176d87d

Browse files
committed
display useful error if unable to create combine directory
1 parent f00c5f3 commit 176d87d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

combine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
if ($write_combined) {
150150

151151
if(!file_exists($combinedir)) {
152-
mkdir($combinedir, 0700);
152+
@mkdir($combinedir, 0700) or die("Unable to create combine directory {$combinedir}. Please check permissions.");
153153
}
154154

155155
$filename = '';
@@ -204,4 +204,4 @@
204204
}
205205
}
206206
}
207-
207+

0 commit comments

Comments
 (0)