Skip to content

Commit 1f25147

Browse files
authored
fix(serveStatic): omit decoded id from statusMessage (#1044)
1 parent 55de107 commit 1f25147

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/utils/static.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ export async function serveStatic(
110110

111111
if (!meta) {
112112
if (!options.fallthrough) {
113-
throw createError({
114-
statusMessage: "Cannot find static asset " + id,
115-
statusCode: 404,
116-
});
113+
throw createError({ statusCode: 404 });
117114
}
118115
return false;
119116
}

0 commit comments

Comments
 (0)