Using the correct method name in the error message.  fixes #8926