Skip to content

Commit

Permalink
fix: print deploy error_message, if exists (#5447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt authored Feb 2, 2023
1 parent cec55d1 commit 0929141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/deploy/util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const waitForDiff = async (api, deployId, siteId, timeout) => {
switch (siteDeploy.state) {
// https://github.com/netlify/bitballoon/blob/master/app/models/deploy.rb#L21-L33
case 'error': {
const deployError = new Error(`Deploy ${deployId} had an error`)
const deployError = new Error(siteDeploy.error_message || `Deploy ${deployId} had an error`)
deployError.deploy = siteDeploy
throw deployError
}
Expand Down Expand Up @@ -60,7 +60,7 @@ export const waitForDeploy = async (api, deployId, siteId, timeout) => {
switch (siteDeploy.state) {
// https://github.com/netlify/bitballoon/blob/master/app/models/deploy.rb#L21-L33
case 'error': {
const deployError = new Error(`Deploy ${deployId} had an error`)
const deployError = new Error(siteDeploy.error_message || `Deploy ${deployId} had an error`)
deployError.deploy = siteDeploy
throw deployError
}
Expand Down

1 comment on commit 0929141

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Package size: 265 MB

Please sign in to comment.