mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-08 08:06:15 +00:00
Log the more raw error message from Twirp
This commit is contained in:
@@ -194,6 +194,11 @@ describe('Deployment', () => {
|
||||
)
|
||||
expect(core.error).toHaveBeenNthCalledWith(
|
||||
1,
|
||||
'Listing artifact metadata failed',
|
||||
new Error('Failed to ListArtifacts: Received non-retryable error: Failed request: (400) null: yikes!')
|
||||
)
|
||||
expect(core.error).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
'Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.',
|
||||
expect.any(Error)
|
||||
)
|
||||
@@ -416,6 +421,11 @@ describe('Deployment', () => {
|
||||
)
|
||||
expect(core.error).toHaveBeenNthCalledWith(
|
||||
1,
|
||||
'Listing artifact metadata failed',
|
||||
new Error('Failed to ListArtifacts: Received non-retryable error: Failed request: (501) null: oh no')
|
||||
)
|
||||
expect(core.error).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
'Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.',
|
||||
expect.any(Error)
|
||||
)
|
||||
|
||||
@@ -70,6 +70,7 @@ async function getArtifactMetadata({ artifactName }) {
|
||||
const twirpResponse = await artifactClient.listArtifacts()
|
||||
response = wrapTwirpResponseLikeOctokit(twirpResponse, requestOptions)
|
||||
} catch (twirpError) {
|
||||
core.error('Listing artifact metadata failed', twirpError)
|
||||
const octokitError = wrapTwirpErrorLikeOctokit(twirpError, requestOptions)
|
||||
throw octokitError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user