On debug log upload fail, log out top-level error message

This commit is contained in:
Scott Nonnenberg 2022-12-08 18:44:34 -08:00 committed by GitHub
parent ec3c8d99ef
commit 5043ac2e02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ export const upload = async ({
} catch (error) {
const response = error.response as Response<string>;
throw new Error(
`Got threw on upload to S3, got status ${response?.statusCode}, body '${response?.body}' `
`Got threw on upload to S3: "${error.message}", got status ${response?.statusCode}, body '${response?.body}' `
);
}
logger.info('Debug log upload complete.');