Diffusion KAuth ada2dc24381b

Check error status after every PolKitAuthority usage

Authored by skalinichev on May 27 2017, 6:02 AM.

Description

Check error status after every PolKitAuthority usage

Otherwise if some error occurred in e.g. checkAuthorizationSync call,
enumerateActions call would also fail (as PolKitAuthority already set
error flag internally)

Differential Revision: https://phabricator.kde.org/D5983