Skip to content

Commit

Permalink
Show an error message when a query yields an invalid layer
Browse files Browse the repository at this point in the history
... instead of failing silently
  • Loading branch information
elpaso committed Dec 14, 2018
1 parent e58abfd commit 3618d63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -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):
Expand Down

0 comments on commit 3618d63

Please sign in to comment.