Skip to content

Commit

Permalink
collect errors in change result
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg committed Dec 10, 2013
1 parent c875b7f commit e5afaca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Expand Up @@ -76,7 +76,13 @@ module.exports = function(options){
self.emit('change', original, changeInfo)
}
result.accepted = true
} else if (changeInfo.errors) {
result.errors = result.errors || []
changeInfo.errors.forEach(function(error){
result.errors.push(error)
})
}

return changeInfo
})

Expand Down

0 comments on commit e5afaca

Please sign in to comment.