We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcecb94 commit 2b4d74bCopy full SHA for 2b4d74b
packages/@vue/cli-ui/ui-defaults/utils/audit.js
@@ -20,6 +20,14 @@ exports.auditProject = async function (cwd) {
20
reject: false
21
})
22
23
+ if (child.stderr) {
24
+ const errLines = child.stderr.split('\n').map(l => l.trim()).filter(l => l)
25
+ const error = errLines.find(l => l.startsWith('Error:'))
26
+ if (error) {
27
+ throw new Error(error.substr('Error:'.length).trim())
28
+ }
29
30
+
31
const data = child.stdout
32
33
let auditAdvisories = []
0 commit comments