From 3cfaf1f44dc066dfda32ca9e62624b9d86222f32 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 4 Jan 2004 21:32:04 +0000 Subject: [PATCH] Fix error messages on init_scan --- src/mp3-scanner.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mp3-scanner.c b/src/mp3-scanner.c index 691d56c7..f08ab971 100644 --- a/src/mp3-scanner.c +++ b/src/mp3-scanner.c @@ -232,11 +232,15 @@ int scan_freetags(MP3FILE *pmp3); */ int scan_init(char *path) { + int err; if(db_is_empty()) { if(db_start_initial_update()) return -1; - scan_foreground(path); + + DPRINTF(ERR_DEBUG,"Scanning for MP3s in %s\n",path); + + err=scan_foreground(path); if(db_end_initial_update()) return -1; @@ -245,7 +249,7 @@ int scan_init(char *path) { return ENOTSUP; } - return 0; + return err; } /*