err is already defined in the function definition.