Skip to content

Commit

Permalink
Add user-agent & update error messages (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcampos authored Aug 1, 2024
1 parent 1e1be66 commit 1b1324a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/sync-report/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -65,6 +65,7 @@ export async function syncReport(argv: SyncReportArguments) {
body: formData,
headers: {
Authorization: `Bearer ${argv["api-key"]}`,
"User-Agent": "rmoa-cli-v1",
},
},
);
Expand Down

0 comments on commit 1b1324a

Please sign in to comment.