clarified exception message so you can see what type was actually passed...

... to the resolver