consistent promise behavior for get artifact
This commit is contained in:
1 parent
d61f5a8209
commit
1f6311c296
4 files changed
+29
-40
No files matched your search
@@ -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'
|
||||
}
|
||||
}
|
||||
@@ -53,11 +53,6 @@ export interface UploadArtifactOptions {
|
||||
*****************************************************************************/
|
||||
|
||||
export interface GetArtifactResponse {
|
||||
/**
|
||||
* If an artifact was found
|
||||
*/
|
||||
success: boolean
|
||||
|
||||
/**
|
||||
* Metadata about the artifact that was found
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user