clarified exception message to show the actual type passed to the resolver

further improved message of the exception