diff --git a/src/kauthaction.cpp b/src/kauthaction.cpp --- a/src/kauthaction.cpp +++ b/src/kauthaction.cpp @@ -24,6 +24,7 @@ class QWidget; +#include "kauthdebug.h" #include "kauthexecutejob.h" #include "BackendsManager.h" @@ -121,10 +122,14 @@ if (BackendsManager::authBackend()->capabilities() & KAuth::AuthBackend::CheckActionExistenceCapability) { // In this case, just ask the backend d->valid = BackendsManager::authBackend()->actionExists(name); + if (!d->valid) + qCWarning(KAUTH) << "Backend does not recognize action: " << name; } else { // Otherwise, check through a regexp QRegExp exp(QLatin1String("[0-z]+(\\.[0-z]+)*")); d->valid = exp.exactMatch(name); + if (!d->valid) + qCWarning(KAUTH) << "Action has an invalid name: " << name; } }