Skip to content

Commit 2367e64

Browse files
committed
Make error messages more speaking
1 parent 9ac133a commit 2367e64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm)
828828
filename = zend_file_cache_get_bin_file_path(script->script.filename);
829829

830830
if (zend_file_cache_mkdir(filename, strlen(ZCG(accel_directives).file_cache)) != SUCCESS) {
831-
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create directory for file '%s'\n", filename);
831+
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create directory for file '%s', %s\n", filename, strerror(errno));
832832
efree(filename);
833833
return FAILURE;
834834
}
@@ -840,7 +840,7 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm)
840840
#endif
841841
if (fd < 0) {
842842
if (errno != EEXIST) {
843-
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create file '%s'\n", filename);
843+
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create file '%s', %s\n", filename, strerror(errno));
844844
}
845845
efree(filename);
846846
return FAILURE;

0 commit comments

Comments
 (0)