add error_type to error string if its not empty