more debug info

This commit is contained in:
Alexander Kuzmenkov 2021-03-05 20:24:50 +03:00
parent 70dfcdac8d
commit 60cb84d417

View File

@ -1390,6 +1390,9 @@ private:
{
fmt::print(stderr, "The query formatting is broken. Got the following (different) text after formatting the fuzzed query and parsing it back:\n'{}'\n, expected:\n'{}'\n",
formatted_twice, fuzzed_text);
fmt::print(stderr, "AST parsed back:\n'{}'\nSource AST:\n'{}'\n",
parsed_formatted_query->dumpTree(),
ast_to_process->dumpTree());
exit(1);
}