bump guh version and add a more specific rule error
This commit is contained in:
parent
90622e5edb
commit
f0d7fbd3f5
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
guh (0.3.0) utopic; urgency=medium
|
||||||
|
|
||||||
|
* update rule engine and many other small changes
|
||||||
|
|
||||||
|
-- Simon Stürz <simon.stuerz@guh.guru> Mon, 16 Mar 2015 09:52:40 +0100
|
||||||
|
|
||||||
guh (0.2.0) UNRELEASED; urgency=medium
|
guh (0.2.0) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* split plugins into dynamic libs and packages
|
* split plugins into dynamic libs and packages
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#define JSON_PROTOCOL_VERSION 18
|
#define JSON_PROTOCOL_VERSION 19
|
||||||
|
|
||||||
JsonRPCServer::JsonRPCServer(QObject *parent):
|
JsonRPCServer::JsonRPCServer(QObject *parent):
|
||||||
JsonHandler(parent),
|
JsonHandler(parent),
|
||||||
|
|||||||
@ -203,7 +203,7 @@ JsonReply* RulesHandler::AddRule(const QVariantMap ¶ms)
|
|||||||
if (eventParamType != actionParamType) {
|
if (eventParamType != actionParamType) {
|
||||||
QVariantMap returns;
|
QVariantMap returns;
|
||||||
qWarning() << "RuleActionParam" << ruleActionParam.name() << " and given event param have not the same type.";
|
qWarning() << "RuleActionParam" << ruleActionParam.name() << " and given event param have not the same type.";
|
||||||
returns.insert("ruleError", JsonTypes::ruleErrorToString(RuleEngine::RuleErrorInvalidRuleActionParameter));
|
returns.insert("ruleError", JsonTypes::ruleErrorToString(RuleEngine::RuleErrorTypesNotMatching));
|
||||||
return createReply(returns);
|
return createReply(returns);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,7 +43,8 @@ public:
|
|||||||
RuleErrorInvalidParameter,
|
RuleErrorInvalidParameter,
|
||||||
RuleErrorInvalidRuleFormat,
|
RuleErrorInvalidRuleFormat,
|
||||||
RuleErrorMissingParameter,
|
RuleErrorMissingParameter,
|
||||||
RuleErrorInvalidRuleActionParameter
|
RuleErrorInvalidRuleActionParameter,
|
||||||
|
RuleErrorTypesNotMatching
|
||||||
};
|
};
|
||||||
|
|
||||||
enum RemovePolicy {
|
enum RemovePolicy {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
18
|
19
|
||||||
{
|
{
|
||||||
"methods": {
|
"methods": {
|
||||||
"Actions.ExecuteAction": {
|
"Actions.ExecuteAction": {
|
||||||
@ -608,7 +608,8 @@
|
|||||||
"RuleErrorInvalidParameter",
|
"RuleErrorInvalidParameter",
|
||||||
"RuleErrorInvalidRuleFormat",
|
"RuleErrorInvalidRuleFormat",
|
||||||
"RuleErrorMissingParameter",
|
"RuleErrorMissingParameter",
|
||||||
"RuleErrorInvalidRuleActionParameter"
|
"RuleErrorInvalidRuleActionParameter",
|
||||||
|
"RuleErrorTypesNotMatching"
|
||||||
],
|
],
|
||||||
"SetupMethod": [
|
"SetupMethod": [
|
||||||
"SetupMethodJustAdd",
|
"SetupMethodJustAdd",
|
||||||
|
|||||||
Reference in New Issue
Block a user