mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Grammar: Show antlr error message where possible
When catching an exception thrown by antlr print all the information which has been provided.
This commit is contained in:
@@ -145,6 +145,10 @@ Table Table::parseSQL(const QString &sSQL)
|
||||
CreateTableWalker ctw(parser.getAST());
|
||||
return ctw.table();
|
||||
}
|
||||
catch(antlr::ANTLRException& ex)
|
||||
{
|
||||
qCritical() << "Sqlite parse error: " << QString::fromStdString(ex.toString()) << "(" << sSQL << ")";
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
qCritical() << "Sqlite parse error: " << sSQL; //TODO
|
||||
|
||||
Reference in New Issue
Block a user