mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-07 09:13:22 +08: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'
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user