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

@@ -192,7 +192,7 @@ export const handlerRaw = async (
} }
return apiResp( return apiResp(
400, 400,
"Bad request: archive has type ." + pair[1], `Bad request: requested .${ext} but archive has type .${pair[1]}`,
false, false,
headers headers
); );

View File

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