[Kde-pim] Akonadi: sane behaviour when proper configuration of mysql is missing

Till Adam till at kdab.net
Fri Dec 7 05:29:43 GMT 2007


On Friday 07 December 2007 03:54:48 Jarosław Staniek wrote:
> Is it good idea to add meaningful return values in place of things like
>   [1] and [2]?
> I would introduce status method and use it in main().
>
>
> [1]
>    if ( globalConfig.isEmpty() )
>      qFatal("Where is my MySQL config file??");
>
> [2]
>      if ( !listen( QHostAddress::LocalHost, port ) )
>        qFatal("Unable to listen on port %d", port);

Sounds like a good idea to me.

-- 
Till Adam -- till at kdab.net, adam at kde.org
KDAB, Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20071207/65fb5f81/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list