From 84aced0a3d5010ff15b5918791ccacee70fed452 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 8 Feb 2020 13:38:24 +0100 Subject: [PATCH] [scan] Fix exit and error message if nested playlist is invalid --- src/library/filescanner_playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/filescanner_playlist.c b/src/library/filescanner_playlist.c index bce5b111..deaf02ab 100644 --- a/src/library/filescanner_playlist.c +++ b/src/library/filescanner_playlist.c @@ -187,8 +187,8 @@ process_nested_playlist(int parent_id, const char *path) deref = realpath(path, NULL); if (!deref) { - DPRINTF(E_LOG, L_SCAN, "Could not dereference path '%s'\n", path); - goto error; + DPRINTF(E_LOG, L_SCAN, "Could not dereference path '%s': %s\n", path, strerror(errno)); + return -1; } // Do we already have the playlist in the database?