diff options
-rw-r--r-- | commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -34,7 +34,11 @@ static void commands_list(GSocketConnection *connection, const gchar *cmd) { g_strfreev(data); struct directory *directory = music_find_dir(dirname); - g_assert(directory != NULL); + if(directory == NULL) { + g_warning("couldn't find directory %s", dirname); + send_404(connection); + return; + } GString *list_string = g_string_new(NULL); |