consistent promise behavior for get artifact

This commit is contained in:
Rob Herley
2023-12-05 17:56:18 +00:00
committed by GitHub
parent 75a3586061
commit d3c5f358d1
4 changed files with 29 additions and 40 deletions

View File

@@ -19,3 +19,11 @@ export class InvalidResponseError extends Error {
this.name = 'InvalidResponseError'
}
}
export class ArtifactNotFoundError extends Error {
constructor(name: string) {
const message = `No artifact found for name: ${name}`
super(message)
this.name = 'ArtifactNotFoundError'
}
}

View File

@@ -53,11 +53,6 @@ export interface UploadArtifactOptions {
*****************************************************************************/
export interface GetArtifactResponse {
/**
* If an artifact was found
*/
success: boolean
/**
* Metadata about the artifact that was found
*/