diff --git a/index.js b/index.js index c72fab7..30bf9a8 100644 --- a/index.js +++ b/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 }) diff --git a/package.json b/package.json index a46dec1..223758a 100644 --- a/package.json +++ b/package.json @@ -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": {