Skip to content

Commit

Permalink
chore: update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Feb 6, 2024
1 parent 6add8fd commit b79a015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/publisher/github/src/PublisherGithub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class PublisherGithub extends PublisherBase<PublisherGitHubConfig
// was simply a race condition with uploading artifacts with the same name
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if (err instanceof RequestError && err.status === 422 && (err.response?.data as any)?.errors?.[0].code === 'already_exists') {
console.error(`Asset with name '${artifactName} already exists - there may be a bug with GitHub.sanitizeName`);
console.error(`Asset with name '${artifactName}' already exists - there may be a bug with Forge's GitHub.sanitizeName util`);
}
throw err;
}
Expand Down

0 comments on commit b79a015

Please sign in to comment.