Skip to content

Commit

Permalink
Pass errors from recipes back out
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck LeDuc Díaz committed Apr 29, 2020
1 parent c4b307a commit fb18764
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Expand Up @@ -498,11 +498,11 @@ export default class Lorena extends EventEmitter {
resolve(result.payload.msg)
})
.catch((e) => {
reject(new Error('member-of failed'))
reject(e)
})
}
}).catch((e) => {
reject(new Error('member-of failed'))
reject(e)
})
})
}
Expand Down Expand Up @@ -535,8 +535,8 @@ export default class Lorena extends EventEmitter {
resolve(result.payload.msg)
}
})
.catch(() => {
reject(new Error('member-of-confirm failed'))
.catch((e) => {
reject(e)
})
}
})
Expand Down

0 comments on commit fb18764

Please sign in to comment.