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'
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user