mirror of
https://github.com/actions/toolkit.git
synced 2026-08-19 00:00:17 +02:00
consistent promise behavior for download artifact
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user