Adds errors for generate part.