A bit more elegant error handling.
A bit more elegant error handling.

svn path=/branches/work/kdab-post-4.0/kdepim/; revision=713429

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi