[Digikam-devel] Detailed error reporting

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Jan 18 20:22:02 GMT 2009


> Hi
>
> I've just been troubleshooting a bug reported on an openSUSE forum[1],
> which seems due to missing write permission on the USB device.  The digikam
> error message is only "Check the camera is connected correctly and turned
> on".  I think it would be handy to have more detailed error reporting to
> make it easy (especially for distro people) to troubleshoot simple things
> like bad perms.
>
> I had a quick look in  /usr/include/gphoto2/gphoto2-*-result.h and there
> are a number of useful error codes there that could be integrated in the
> interface of DKCamera to keep the existing layering.  Is anyone working on
> this already?

No.
This error message comes from CameraUI, signalConnected only has one bool 
parameter. We could add a QString there. Currently the gphoto2 message seems 
to be printed to the console, this could perhaps be used for this.
See CameraController::executeCommand, case gp_open.
See GPCamera::doConnect, last paragraph.

>
> Will
>
> [1]
> http://forums.opensuse.org/applications/405027-digikam-wont-connect-digital
>-camera.html


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20090118/09b62c0d/attachment.html>


More information about the Digikam-devel mailing list