serverless: improve error message if request doesn't match archive type [#190]

This commit is contained in:
Brandon Liu
2023-06-07 09:26:51 -04:00
parent af6cc00c0f
commit 7250f81846
2 changed files with 2 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ export default {
continue;
}
return cacheableResponse(
"Bad request: archive has type ." + pair[1],
`Bad request: requested .${ext} but archive has type .${pair[1]}`,
cacheable_headers,
400
);