Backport r883809 by tmcguire from trunk to the 4.1 branch:
Merged revisions 883237 via svnmerge from
svn+ssh://tmcguire@svn.kde.org/home/kde/branches/kdepim/enterprise4/kdepimlibs
........
r883237 | mutz | 2008-11-12 14:30:34 +0100 (Wed, 12 Nov 2008) | 1 line More readable debug output (use symbolic status names instead of numeric value), return better errors for a) write() failures (gets the error from the system now) and b) for missing passphrases.
........
svn path=/branches/KDE/4.1/kdepimlibs/; revision=883857