Only add error arguments if there is an error