Print error info in badge_listener.c