mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +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:
parent
4f62bb5b90
commit
8fae4b2c6c
3
index.js
3
index.js
@ -6,6 +6,7 @@ const ms = require('ms')
|
||||
const assert = require('webassert').default
|
||||
const fsp = require('fs').promises
|
||||
const minimatch = require('minimatch')
|
||||
const { stackWithCauses } = require('pony-cause')
|
||||
|
||||
let cleanup
|
||||
|
||||
@ -41,7 +42,7 @@ async function doDeploy () {
|
||||
}
|
||||
|
||||
doDeploy().catch(err => {
|
||||
console.error(err)
|
||||
console.error(stackWithCauses(err))
|
||||
if (err.stats) {
|
||||
console.log('Files to upload: ')
|
||||
console.dir(err.stats.filesToUpload, { colors: true, depth: 999 })
|
||||
|
||||
@ -8,9 +8,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "1.10.0",
|
||||
"async-neocities": "2.1.3",
|
||||
"async-neocities": "2.1.4",
|
||||
"minimatch": "5.1.0",
|
||||
"ms": "2.1.3",
|
||||
"pony-cause": "^2.1.4",
|
||||
"webassert": "3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user