Skip to content
Permalink
Browse files

Show an error message when a query yields an invalid layer

... instead of failing silently
  • Loading branch information
elpaso committed Dec 14, 2018
1 parent e58abfd commit 3618d63ca69029bca8165b1822d5aac26658b4e7
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/db_manager/dlg_sql_window.py
@@ -429,6 +429,8 @@ def _getSqlLayer(self, _filter):
if layer.isValid():
return layer
else:
e = BaseError(self.tr("There was an error creating the SQL layer, please check the logs for further information."))
DlgDbError.showError(e, self)
return None

def loadSqlLayer(self):

0 comments on commit 3618d63

Please sign in to comment.
You can’t perform that action at this time.