[Qgis-developer] Silently fail on error or say it loud?

Alessandro Pasotti apasotti at gmail.com
Tue Nov 24 00:58:55 PST 2015


Hi,

I didn't find much on coding guidelines and I'm not sure about what to do,
it seems that this is treated differently in different parts of the code.

An example:

in the vector layer configuration dialog, the user can enter ad UI file for
the custom form, if the specified file does not exist it is simply ignored
(no errors or warnings are shown to the user).

Being in a GUI context, I think that warning the user about a not-critical
misconfiguration would be the right thing to do.

Do we have any convention or best practice to follow in this case?



-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151124/23981849/attachment.html>


More information about the Qgis-developer mailing list