wixplosives / engine

Scalable Web Application Engine
https://wixplosives.github.io/engine/
MIT License
22 stars 3 forks source link

fix: handle error being thrown in shutdown of run #2595

Closed matangeorgi closed 5 days ago

matangeorgi commented 1 week ago

when the catch scope is being triggered in the run function, the catch will execute:

await this.shutdown();

If shutdown fails for some reason we have no information of what happened. Adding an extra catch is for adding the missing information.