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:
parent
03242c6c22
commit
9c21a9df6b
2 changed files with 6 additions and 1 deletions
5
.changeset/tall-papayas-drive.md
Normal file
5
.changeset/tall-papayas-drive.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Improves the message of `MiddlewareCantBeLoaded` for clarity
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue