impruved error handling for wrong relation definition.
impruved error handling for wrong relation definition.

lzap/scoped_search,wvanbergen/scoped_search,johnpmitsch/scoped_search,jlsherrill/scoped_search,lzap/scoped_search,johnpmitsch/scoped_search,wvanbergen/scoped_search,jlsherrill/scoped_search