Remove error messages from being printed to the console