0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00
astro/.changeset/selfish-rings-occur.md
Emanuele Stoppa fa3078ce9f
fix: handle middleware loading error (#9458)
* fix: handle middleware loading error

* remove the try/catch

* rethrow error

* Update packages/astro/src/core/middleware/loadMiddleware.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-12-19 08:28:04 +00:00

97 B

astro
patch

Correctly handle the error in case the middleware throws a runtime error