mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-09 12:26:11 +00:00
try output stacktrace as well
This commit is contained in:
@@ -65,6 +65,7 @@ class Deployment {
|
||||
core.info(JSON.stringify(response.data))
|
||||
this.deploymentInfo = response.data
|
||||
} catch (error) {
|
||||
core.error(error.stack)
|
||||
|
||||
// build customized error message based on server response
|
||||
if (error.response) {
|
||||
|
||||
@@ -43,6 +43,7 @@ async function main() {
|
||||
await deployment.create(idToken)
|
||||
await deployment.check()
|
||||
} catch (error) {
|
||||
|
||||
core.setFailed(error)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user