hfour / h4bff

H4's backend & frontend framework :cupid::wrench: https://hfour.github.io/h4bff/
MIT License
7 stars 2 forks source link

Handle middleware errors in RPC calls #7

Closed gphfour closed 5 years ago

gphfour commented 5 years ago

Moved the RPC success and error handling logic to a higher level to achieve consistent and centralized success and error handling. Added promise rejection when error happens within middleware.