0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

Improve the message of MiddlewareCantBeLoaded for clarity (#10239)

* Improve the message of `MiddlewareCantBeLoaded` for clarity

* Add changeset
This commit is contained in:
Ming-jun Lu 2024-02-27 15:17:51 +08:00 committed by GitHub
parent 03242c6c22
commit 9c21a9df6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Improves the message of `MiddlewareCantBeLoaded` for clarity

View file

@ -828,7 +828,7 @@ export const LocalsNotAnObject = {
export const MiddlewareCantBeLoaded = {
name: 'MiddlewareCantBeLoaded',
title: "Can't load the middleware.",
message: 'The middleware threw an error while Astro was trying to loading it.',
message: 'An unknown error was thrown while loading your middleware.',
} satisfies ErrorData;
/**