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); } };