@antora/cli
Advanced tools
Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4
@@ -24,6 +24,11 @@ #!/usr/bin/env node | ||
if (showStack) { | ||
const stack = err.backtrace || (err.stack && err.stack.split('\n')) || [] | ||
const msgLine = stack.shift() | ||
msg = msgLine && msgLine.endsWith(': ' + msg) ? msgLine : `error: ${msg}` | ||
console.error(stack.length ? [msg, ...stack].join('\n') : `${msg} (no stack)`) | ||
let stack | ||
if ((stack = err.backtrace)) { | ||
msg = [`error: ${msg}`, ...stack.slice(1)].join('\n') | ||
} else if ((stack = err.stack)) { | ||
msg = stack.startsWith(`${err.name}: ${msg}\n`) ? stack : [msg, ...stack.split('\n').slice(1)].join('\n') | ||
} else { | ||
msg = `error: ${msg} (no stack)` | ||
} | ||
console.error(msg) | ||
} else { | ||
@@ -30,0 +35,0 @@ console.error(`error: ${msg}\nAdd the --stacktrace option to see the cause.`) |
{ | ||
"name": "@antora/cli", | ||
"version": "3.0.0-alpha.3", | ||
"version": "3.0.0-alpha.4", | ||
"description": "The command line interface for Antora.", | ||
@@ -21,7 +21,7 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/playbook-builder": "3.0.0-alpha.3", | ||
"@antora/playbook-builder": "3.0.0-alpha.4", | ||
"commander": "~6.2" | ||
}, | ||
"devDependencies": { | ||
"@antora/site-publisher": "3.0.0-alpha.3", | ||
"@antora/site-publisher": "3.0.0-alpha.4", | ||
"convict": "~6.0", | ||
@@ -45,3 +45,3 @@ "kapok-js": "~0.10" | ||
], | ||
"gitHead": "2f02cf0d42fb5db4607ea5e600ca8a4ab45d5a5f" | ||
"gitHead": "aaa76a6387e339052d0bfb298add24f56f42a828" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26451
160
+ Added@antora/playbook-builder@3.0.0-alpha.4(transitive)
- Removed@antora/playbook-builder@3.0.0-alpha.3(transitive)