diff options
author | Max Kellermann <max@duempel.org> | 2011-09-09 22:35:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-09 22:55:57 +0200 |
commit | b42a8d236434d7ec63c742d275cd7b75adbe760b (patch) | |
tree | ee314f81f04fa7c396fd79604a61c178781a85d6 /src/conf.c | |
parent | 61fc01e79e385bc903edf1fd0cac0e5843911d58 (diff) | |
download | mpd-b42a8d236434d7ec63c742d275cd7b75adbe760b.tar.gz mpd-b42a8d236434d7ec63c742d275cd7b75adbe760b.tar.xz mpd-b42a8d236434d7ec63c742d275cd7b75adbe760b.zip |
utils: parsePath() returns GError on failure
Better error messages.
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf.c b/src/conf.c index b3b684aa5..245a2a811 100644 --- a/src/conf.c +++ b/src/conf.c @@ -513,11 +513,11 @@ config_dup_path(const char *name, GError **error_r) if (param == NULL) return NULL; - char *path = parsePath(param->value); + char *path = parsePath(param->value, error_r); if (G_UNLIKELY(path == NULL)) - g_set_error(error_r, config_quark(), 0, - "Invalid path in \"%s\" at line %i", - name, param->line); + g_prefix_error(error_r, + "Invalid path in \"%s\" at line %i: ", + name, param->line); return path; } |