dump full query string on failure