Skip to content

Commit

Permalink
Adding the action object to the error long in validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
harishkumarv committed May 21, 2015
1 parent fb097c3 commit 05e67b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/actionvalidator/actionvalidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = function (core, conf) {
var result = validator.validate(action, valid);
log.d("validation results", result);
if (!result.status) {
log.e("Error: invalid action params", JSON.stringify(result), " ID: ",action.id);
log.e("Error: invalid action params", JSON.stringify(result), JSON.stringify(action));
if (!(action.type && typeof action.type === 'string')) action.type = '';
callback(new Error("INVALID_" + action.type.toUpperCase() + "_PARAMS"));
return false;
Expand Down

0 comments on commit 05e67b2

Please sign in to comment.