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