Added better error reporting to the exception message in case the users specified an incorrect type for one of their fields in the entity they are trying to query against.