mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 08:51:54 +00:00
Print error cause no matter what
Ensure that we print the error cause when we catch an error
This commit is contained in:
3
index.js
3
index.js
@@ -6,6 +6,7 @@ const ms = require('ms')
|
|||||||
const assert = require('webassert').default
|
const assert = require('webassert').default
|
||||||
const fsp = require('fs').promises
|
const fsp = require('fs').promises
|
||||||
const minimatch = require('minimatch')
|
const minimatch = require('minimatch')
|
||||||
|
const { stackWithCauses } = require('pony-cause')
|
||||||
|
|
||||||
let cleanup
|
let cleanup
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@ async function doDeploy () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
doDeploy().catch(err => {
|
doDeploy().catch(err => {
|
||||||
console.error(err)
|
console.error(stackWithCauses(err))
|
||||||
if (err.stats) {
|
if (err.stats) {
|
||||||
console.log('Files to upload: ')
|
console.log('Files to upload: ')
|
||||||
console.dir(err.stats.filesToUpload, { colors: true, depth: 999 })
|
console.dir(err.stats.filesToUpload, { colors: true, depth: 999 })
|
||||||
|
|||||||
@@ -8,9 +8,10 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.10.0",
|
"@actions/core": "1.10.0",
|
||||||
"async-neocities": "2.1.3",
|
"async-neocities": "2.1.4",
|
||||||
"minimatch": "5.1.0",
|
"minimatch": "5.1.0",
|
||||||
"ms": "2.1.3",
|
"ms": "2.1.3",
|
||||||
|
"pony-cause": "^2.1.4",
|
||||||
"webassert": "3.0.2"
|
"webassert": "3.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user