-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBManager fails to display error messages with virtual layers #28014
Comments
Author Name: Regis Haubourg (@haubourg) Also occurs in QGIS 3.2.2 |
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Giovanni Manghi (@gioman) as far as I remember it does not affect only virtual layers- |
Author Name: Hugo Mercier (@mhugo) From what I can see, there is at least the following problem:
The error is catched and displayed in a QgsDebugMsg. It seems there is no way to set an error status on a qgstask ? |
Author Name: Alessandro Pasotti (@elpaso) Sorry Hugo, I didn't see your comment before I made the PR. Yes: there is no way to store an error message, that's why there is a wrapper for that in code: https://github.com/qgis/QGIS/blob/master/python/core/additions/qgstaskwrapper.py I'm not sure what would be the best re-usable approach here but the bugfix I've implemented was exactly to add exceptionText to the task in order to store the error message. |
Author Name: Hugo Mercier (@mhugo) No problem :) |
Author Name: Regis Haubourg (@haubourg)
Original Redmine Issue: 20193
Affected QGIS version: 3.3(master)
Redmine category:db_manager
Assignee: Alessandro Pasotti
In QGIS master, error messages when trying to work with virtual layers are no more catched.
IN QGIS 2.1, just issuing a wrong query like
returned a window with
In QGIS master, this error window is empty.
The text was updated successfully, but these errors were encountered: