consistent promise behavior for download artifact

This commit is contained in:
Rob Herley
2023-12-05 18:35:26 +00:00
committed by GitHub
parent d3c5f358d1
commit ce9eae0785
5 changed files with 11 additions and 16 deletions

View File

@@ -21,8 +21,7 @@ export class InvalidResponseError extends Error {
}
export class ArtifactNotFoundError extends Error {
constructor(name: string) {
const message = `No artifact found for name: ${name}`
constructor(message = 'Artifact not found') {
super(message)
this.name = 'ArtifactNotFoundError'
}

View File

@@ -86,10 +86,6 @@ export interface ListArtifactsResponse {
* *
*****************************************************************************/
export interface DownloadArtifactResponse {
/**
* If the artifact download was successful
*/
success: boolean
/**
* The path where the artifact was downloaded to
*/