Adjust error message for method type mismatch

Closes #10118, Closes #5925