From de8b4d2d3e8c0a77929dc4d4fea0fd68d61a4bed Mon Sep 17 00:00:00 2001 From: "0.618" Date: Mon, 28 Aug 2023 15:31:19 -0700 Subject: [PATCH] fix(cli-internal): add DiagnoseReportUploadError status text --- packages/amplify-cli/src/commands/diagnose.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-cli/src/commands/diagnose.ts b/packages/amplify-cli/src/commands/diagnose.ts index 27ffd2d2828..5c2c541b219 100644 --- a/packages/amplify-cli/src/commands/diagnose.ts +++ b/packages/amplify-cli/src/commands/diagnose.ts @@ -226,7 +226,7 @@ const sendFile = async ( body: data, }); if (response.status !== 200) { - throw new DiagnoseReportUploadError(); + throw new DiagnoseReportUploadError(response.statusText); } };