Permalink
Browse files

fsm error

  • Loading branch information...
1 parent 12a7030 commit 6309c9487670ef5ec94a49e8d53cf9bc00ddad7d @dominictarr committed Jun 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 model/overwrite.js
View
@@ -62,11 +62,11 @@ module.exports = exports = function (db,item,callback){
saved:'end',
//try again... this is where i need namespaced events.
//'error.conflict': 'start'
- error: function (err) {
+ error: ['save',function (err) {
if('conflict' === err.error)
this.retry()
else throw err
- },
+ }],
retry: 'start'
}
}).call(db,item,callback)

0 comments on commit 6309c94

Please sign in to comment.