Always set err as the first and seperate parameter.