Commits

Paul Barbu - Gheorghe committed b40a1a2

more verbose message and releasing the memory for status upon failure

  • Participants
  • Parent commits 4bbe9a4

Comments (0)

Files changed (1)

     status = mpd_run_status(conn);
 
     if(status == NULL){
-        fprintf(stderr, "Cannot get MPD status!\n");
+        fprintf(stderr, "Cannot get mpd status: %s\n", mpd_status_get_error(status));
+
+        mpd_status_free(status);
         mpd_connection_free(conn);
         return NULL;
     }