query-compile-error condition now spits out query for debugging. will probably eventually make this configurable.