From bcceecf9a30cb7e0c6c4101fe37297c027b6a14a Mon Sep 17 00:00:00 2001 From: Luis Campos Guajardo Date: Thu, 1 Aug 2024 16:17:53 -0700 Subject: [PATCH] Add user-agent & update error messages --- packages/cli/src/sync-report/handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/sync-report/handler.ts b/packages/cli/src/sync-report/handler.ts index 1624c74..1a68c09 100644 --- a/packages/cli/src/sync-report/handler.ts +++ b/packages/cli/src/sync-report/handler.ts @@ -38,7 +38,7 @@ export async function syncReport(argv: SyncReportArguments) { if (!existsSync(openApiFilePath)) { spinner.stopAndPersist({ symbol: failMark }); printCriticalFailureToConsoleAndExit( - `The OpenAPI file path provided does not exist: ${argv.filename}. Please specify an existing OpenAPI file and try again.`, + `The OpenAPI file path provided does not exist: ${openApiFilePath}. Please specify an existing OpenAPI file and try again.`, ); } spinner.stopAndPersist({ symbol: okMark }); @@ -65,6 +65,7 @@ export async function syncReport(argv: SyncReportArguments) { body: formData, headers: { Authorization: `Bearer ${argv["api-key"]}`, + "User-Agent": "rmoa-cli-v1", }, }, );