Updating error message for invalid params types.

Including a more explicit message when the parameters are not a valid type.