Skip to content
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

Be more verbose when a validation error occurs #62

Open
ricardogsilva opened this issue Sep 9, 2020 · 0 comments
Open

Be more verbose when a validation error occurs #62

ricardogsilva opened this issue Sep 9, 2020 · 0 comments
Labels
type: bug Something isn't working

Comments

@ricardogsilva
Copy link
Collaborator

Currently, if there is an error during automated validation of a check, QGIS shows a message informing of a Python error and directs the user to the logs:

Screenshot from 2020-09-09 14-21-55

Then the logs say this:

_core.QgsProcessingException: There were errors executing the algorithm. 
Traceback (most recent call last):
  File "/home/ricardo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/dataset_qa_workbench/datasetqaworkbench/automation.py", line 90, in perform_automation
    result = qgis.processing.run(algorithm_id, algorithm_parameters)
  File "/home/ricardo/apps/qgis_3_14/share/qgis/python/plugins/processing/tools/general.py", line 106, in run
    return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)
  File "/home/ricardo/apps/qgis_3_14/share/qgis/python/plugins/processing/core/Processing.py", line 198, in runAlgorithm
    raise QgsProcessingException(msg)
_core.QgsProcessingException: There were errors executing the algorithm.

which is also not very informative.

Present a more friendly message to the user that clearly identifies what the problem is

@ricardogsilva ricardogsilva added the type: bug Something isn't working label Sep 9, 2020
@ricardogsilva ricardogsilva self-assigned this Sep 9, 2020
@ricardogsilva ricardogsilva removed their assignment Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant