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(
400,
"Bad request: archive has type ." + pair[1],
`Bad request: requested .${ext} but archive has type .${pair[1]}`,
false,
headers
);