summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-06-27 22:52:27 +0200
committerJoe <bousset.rudy@gmail.com>2022-06-27 22:52:27 +0200
commit670a6d3bdf7a3e4b38b449fb54fd24a0acc6d935 (patch)
tree84e317ddd08439098f690fc51a75c5f4b12ae4d0 /src
parentWIP (diff)
downloadmpdview-670a6d3bdf7a3e4b38b449fb54fd24a0acc6d935.tar.gz
mpdview-670a6d3bdf7a3e4b38b449fb54fd24a0acc6d935.tar.bz2
mpdview-670a6d3bdf7a3e4b38b449fb54fd24a0acc6d935.tar.xz
mpdview-670a6d3bdf7a3e4b38b449fb54fd24a0acc6d935.tar.zst
mpdview-670a6d3bdf7a3e4b38b449fb54fd24a0acc6d935.zip
Ok
Diffstat (limited to 'src')
-rw-r--r--src/c_mpdview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/c_mpdview.c b/src/c_mpdview.c
index 0fa059c..40166d4 100644
--- a/src/c_mpdview.c
+++ b/src/c_mpdview.c
@@ -51,6 +51,9 @@
#include <mpd/client.h>
#include <mpd/connection.h>
+#include <mpd/error.h>
+
+#include "c_mpdview.h"
int
main
@@ -64,6 +67,9 @@ main
if (conn == NULL) {
return (EXIT_FAILURE);
}
+ if (mpd_connection_get_error(conn) != MPD_ERROR_SUCCESS) {
+ dprintf(STDERR_FILENO, "%s: %s\n", PROGNAME, mpd_connection_get_error_message(conn));
+ }
(void)conn;
(void)argc;
(void)argv;