Skip to content

Commit

Permalink
Merge pull request #197 from actions/break-the-circle
Browse files Browse the repository at this point in the history
Remove circular JSON references for error debugging
  • Loading branch information
JamesMGreene committed Jul 10, 2023
2 parents 12ab2b1 + b865aba commit a562022
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion coverage_badge.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/internal/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ class Deployment {
} catch (error) {
core.error(error.stack)

// output raw error in debug mode.
core.debug(JSON.stringify(error))

// build customized error message based on server response
if (error.response) {
let errorMessage = `Failed to create deployment (status: ${error.status}) with build version ${this.buildVersion}. `
Expand Down Expand Up @@ -189,9 +186,6 @@ class Deployment {
} catch (error) {
core.error(error.stack)

// output raw error in debug mode.
core.debug(JSON.stringify(error))

// build customized error message based on server response
if (error.response) {
errorStatus = error.status || error.response.status
Expand Down

0 comments on commit a562022

Please sign in to comment.