Navigation Menu

Skip to content

Commit

Permalink
Add more message
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 9fc3baa commit acacb68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/batch/processor.js
Expand Up @@ -59,7 +59,8 @@ Processor.prototype = {
}

if (fieldNames.indexOf(fieldName) < 0)
errors.push(batch.id + ': The field "' + field + '" is unknown.');
errors.push(batch.id + ': The field "' + field + '" is unknown. ' +
'(available: ' + fieldNames + ')');

if (batch.fields[field] === null)
errors.push(batch.id + ': The field "' + field + '" is null.');
Expand Down

0 comments on commit acacb68

Please sign in to comment.