From 1a137db1b4f6fd997bb6e6f4828fdfe33eb424a4 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 28 Jan 2015 19:59:38 +0100 Subject: [PATCH] Better log message when libspotify is missing --- src/spotify.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/spotify.c b/src/spotify.c index ec995c22..dc82c75d 100644 --- a/src/spotify.c +++ b/src/spotify.c @@ -1794,7 +1794,11 @@ spotify_login(char *path) if (!g_sess) { - DPRINTF(E_LOG, L_SPOTIFY, "Can't login! No valid Spotify session.\n"); + if (!g_libhandle) + DPRINTF(E_LOG, L_SPOTIFY, "Can't login! - could not find libspotify\n"); + else + DPRINTF(E_LOG, L_SPOTIFY, "Can't login! - no valid Spotify session\n"); + return; }