aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 22:35:15 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 22:55:57 +0200
commitb42a8d236434d7ec63c742d275cd7b75adbe760b (patch)
treeee314f81f04fa7c396fd79604a61c178781a85d6 /src/output
parent61fc01e79e385bc903edf1fd0cac0e5843911d58 (diff)
downloadmpd-b42a8d236434d7ec63c742d275cd7b75adbe760b.tar.gz
mpd-b42a8d236434d7ec63c742d275cd7b75adbe760b.tar.xz
mpd-b42a8d236434d7ec63c742d275cd7b75adbe760b.zip
utils: parsePath() returns GError on failure
Better error messages.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/fifo_output_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/fifo_output_plugin.c b/src/output/fifo_output_plugin.c
index 8f2234dd7..e522ef6b9 100644
--- a/src/output/fifo_output_plugin.c
+++ b/src/output/fifo_output_plugin.c
@@ -190,11 +190,11 @@ fifo_output_init(G_GNUC_UNUSED const struct audio_format *audio_format,
return NULL;
}
- path = parsePath(value);
+ path = parsePath(value, error);
g_free(value);
if (!path) {
- g_set_error(error, fifo_output_quark(), errno,
- "Could not parse \"path\" parameter");
+ g_prefix_error(error, "Invalid path in line %i: ",
+ param->line);
return NULL;
}