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
|
||||
|
||||
* split plugins into dynamic libs and packages
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
#include <QJsonDocument>
|
||||
#include <QStringList>
|
||||
|
||||
#define JSON_PROTOCOL_VERSION 18
|
||||
#define JSON_PROTOCOL_VERSION 19
|
||||
|
||||
JsonRPCServer::JsonRPCServer(QObject *parent):
|
||||
JsonHandler(parent),
|
||||
|
||||
@ -203,7 +203,7 @@ JsonReply* RulesHandler::AddRule(const QVariantMap ¶ms)
|
||||
if (eventParamType != actionParamType) {
|
||||
QVariantMap returns;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,7 +43,8 @@ public:
|
||||
RuleErrorInvalidParameter,
|
||||
RuleErrorInvalidRuleFormat,
|
||||
RuleErrorMissingParameter,
|
||||
RuleErrorInvalidRuleActionParameter
|
||||
RuleErrorInvalidRuleActionParameter,
|
||||
RuleErrorTypesNotMatching
|
||||
};
|
||||
|
||||
enum RemovePolicy {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
18
|
||||
19
|
||||
{
|
||||
"methods": {
|
||||
"Actions.ExecuteAction": {
|
||||
@ -608,7 +608,8 @@
|
||||
"RuleErrorInvalidParameter",
|
||||
"RuleErrorInvalidRuleFormat",
|
||||
"RuleErrorMissingParameter",
|
||||
"RuleErrorInvalidRuleActionParameter"
|
||||
"RuleErrorInvalidRuleActionParameter",
|
||||
"RuleErrorTypesNotMatching"
|
||||
],
|
||||
"SetupMethod": [
|
||||
"SetupMethodJustAdd",
|
||||
|
||||
Reference in New Issue
Block a user