Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cherokee/error_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@
title = "HTTP Error %d redirection: An 'url' property is required",
desc = BROKEN_CONFIG)

# cherokee/handler_error_nn.c
#
e('HANDLER_ERROR_OPEN_DIR',
title = "Could not open directory",
desc = "Could not open directory '%s'. Please check the server user and file permissions.")

# cherokee/handler_dirlist.c
#
Expand Down
4 changes: 3 additions & 1 deletion cherokee/handler_error_nn.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ get_nearest_from_directory (char *directory, char *request, cherokee_buffer_t *o
cherokee_boolean_t found = false;

dir = cherokee_opendir (directory);
if (dir == NULL)
if (dir == NULL) {
LOG_CRITICAL (CHEROKEE_ERROR_HANDLER_ERROR_OPEN_DIR, directory);
goto go_out;
}

for (;;) {
re = cherokee_readdir (dir, (struct dirent *)entry_buf, &entry);
Expand Down