Skip to content

Commit

Permalink
Improve the message of MiddlewareCantBeLoaded for clarity (#10239)
Browse files Browse the repository at this point in the history
* Improve the message of `MiddlewareCantBeLoaded` for clarity

* Add changeset
  • Loading branch information
mingjunlu committed Feb 27, 2024
1 parent 03242c6 commit 9c21a9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tall-papayas-drive.md
@@ -0,0 +1,5 @@
---
"astro": patch
---

Improves the message of `MiddlewareCantBeLoaded` for clarity
2 changes: 1 addition & 1 deletion packages/astro/src/core/errors/errors-data.ts
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 9c21a9d

Please sign in to comment.