mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-30 18:14:52 +00:00
adjust debugging message
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -7148,11 +7148,11 @@ class Deployment {
|
|||||||
|
|
||||||
core.info(error.stack)
|
core.info(error.stack)
|
||||||
|
|
||||||
|
// output raw error in debug mode.
|
||||||
|
core.debug(JSON.stringify(error))
|
||||||
|
|
||||||
// build customized error message based on server response
|
// build customized error message based on server response
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
|
|
||||||
// output raw error in debug mode.
|
|
||||||
core.debug(error.response.data)
|
|
||||||
let errorMessage = `Failed to create deployment (status: ${error.response.status}) with build version ${this.buildVersion}. `
|
let errorMessage = `Failed to create deployment (status: ${error.response.status}) with build version ${this.buildVersion}. `
|
||||||
if (error.response.status == 400) {
|
if (error.response.status == 400) {
|
||||||
errorMessage += `Responded with: ${error.response.data?.message}`
|
errorMessage += `Responded with: ${error.response.data?.message}`
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -7148,11 +7148,11 @@ class Deployment {
|
|||||||
|
|
||||||
core.info(error.stack)
|
core.info(error.stack)
|
||||||
|
|
||||||
|
// output raw error in debug mode.
|
||||||
|
core.debug(JSON.stringify(error))
|
||||||
|
|
||||||
// build customized error message based on server response
|
// build customized error message based on server response
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
|
|
||||||
// output raw error in debug mode.
|
|
||||||
core.debug(error.response.data)
|
|
||||||
let errorMessage = `Failed to create deployment (status: ${error.response.status}) with build version ${this.buildVersion}. `
|
let errorMessage = `Failed to create deployment (status: ${error.response.status}) with build version ${this.buildVersion}. `
|
||||||
if (error.response.status == 400) {
|
if (error.response.status == 400) {
|
||||||
errorMessage += `Responded with: ${error.response.data?.message}`
|
errorMessage += `Responded with: ${error.response.data?.message}`
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -68,11 +68,11 @@ class Deployment {
|
|||||||
|
|
||||||
core.info(error.stack)
|
core.info(error.stack)
|
||||||
|
|
||||||
|
// output raw error in debug mode.
|
||||||
|
core.debug(JSON.stringify(error))
|
||||||
|
|
||||||
// build customized error message based on server response
|
// build customized error message based on server response
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
|
|
||||||
// output raw error in debug mode.
|
|
||||||
core.debug(error.response.data)
|
|
||||||
let errorMessage = `Failed to create deployment (status: ${error.response.status}) with build version ${this.buildVersion}. `
|
let errorMessage = `Failed to create deployment (status: ${error.response.status}) with build version ${this.buildVersion}. `
|
||||||
if (error.response.status == 400) {
|
if (error.response.status == 400) {
|
||||||
errorMessage += `Responded with: ${error.response.data?.message}`
|
errorMessage += `Responded with: ${error.response.data?.message}`
|
||||||
|
|||||||
Reference in New Issue
Block a user