aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistSave.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 01:15:54 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 01:15:54 +0200
commit5327ea13ac77df8a3edf17bc8b7bb484e3f209f5 (patch)
tree8a2acf6978d5d9d827c4c9c00d21a44fb508d07a /src/PlaylistSave.cxx
parentbe8ceae6e6c2836233dd8acedd829b18943f820a (diff)
downloadmpd-5327ea13ac77df8a3edf17bc8b7bb484e3f209f5.tar.gz
mpd-5327ea13ac77df8a3edf17bc8b7bb484e3f209f5.tar.xz
mpd-5327ea13ac77df8a3edf17bc8b7bb484e3f209f5.zip
PlaylistSave: eliminate the last g_warning() call
Diffstat (limited to '')
-rw-r--r--src/PlaylistSave.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx
index 5eb0e1180..556ef0238 100644
--- a/src/PlaylistSave.cxx
+++ b/src/PlaylistSave.cxx
@@ -119,7 +119,8 @@ playlist_load_spl(struct playlist *playlist, struct player_control *pc,
const char *path_utf8 = uri_utf8.c_str() + 7;
if (playlist->AppendFile(*pc, path_utf8) != PLAYLIST_RESULT_SUCCESS)
- g_warning("can't add file \"%s\"", path_utf8);
+ FormatError(playlist_domain,
+ "can't add file \"%s\"", path_utf8);
continue;
}