When mpc prints out 'error: ...', it is ambiguous where it came from.
When the error comes from the mpd server, the user might be confused by
something like:

    % mpc sticker music find
    syntax: sticker <dir> find <key>
    % mpc sticker music find rating
    error: unknown command "sticker"

thinking that 'mpc sticker' isn't working properly when the real error
is that the mpd server was built without sqlite.

Signed-off-by: Ben Boeckel <maths...@gmail.com>
---
 src/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util.c b/src/util.c
index 411df2c..50fb137 100644
--- a/src/util.c
+++ b/src/util.c
@@ -42,7 +42,7 @@ printErrorAndExit(struct mpd_connection *conn)
                   rest is either US-ASCII or locale */
                message = charset_from_utf8(message);
 
-       fprintf(stderr, "error: %s\n", message);
+       fprintf(stderr, "mpd error: %s\n", message);
        mpd_connection_free(conn);
        exit(EXIT_FAILURE);
 }
-- 
2.3.0

_______________________________________________
mpd-devel mailing list
mpd-devel@musicpd.org
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to