Fix wrong parameter name in exception message

Must have been copy-pasted from the exception further up.