Skip to content

Commit

Permalink
Make ServiceBus:dispatchMessageToHandler return the handler promise s…
Browse files Browse the repository at this point in the history
…o errors can be handled as expected (#41)
  • Loading branch information
dropdevcoding authored and adenhertog committed Sep 20, 2019
1 parent e4ae0ff commit 96d481b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bus-core/src/service-bus/service-bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ async function dispatchMessageToHandler (
sessionScopeBinder(childContainer.bind.bind(childContainer))

const handler = handlerRegistration.resolveHandler(childContainer)
handler.handle(message, context)
return handler.handle(message, context)
}

0 comments on commit 96d481b

Please sign in to comment.