Don't print error information if debug option is False.