crossbario / autobahn-cpp

WAMP for C++ in Boost/Asio
https://crossbar.io/autobahn
Boost Software License 1.0
251 stars 104 forks source link

Try to send ERROR messages to the apropriate promise/future instead of letting it bubble up the io_service #144

Closed Bigpet closed 7 years ago

Bigpet commented 8 years ago

Route most ERROR messages not just CALL to the correct promises/futures. If they can't be passed to a sensible place at least pass the error message inside the thrown exception.

Not sure about using protocol_error in https://github.com/crossbario/autobahn-cpp/compare/master...Bigpet:errorhandling?expand=1#diff-20840b85274d7d0fe386dfa20530582fR972 but I was too lazy to think of something more fitting.

oberstet commented 7 years ago

Thanks for that patch!