making error reporting for the UI client a bit cleaner.