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 d825e90 commit 7a4f0c9Copy full SHA for 7a4f0c9
lib/doctor.js
@@ -20,7 +20,7 @@ const checkPing = async () => {
20
if (/^E\d{3}$/.test(er.code || ''))
21
throw er.code.substr(1) + ' ' + er.message
22
else
23
- throw er
+ throw er.message
24
} finally {
25
tracker.finish()
26
}
@@ -92,7 +92,7 @@ const lstat = promisify(fs.lstat)
92
const readdir = promisify(fs.readdir)
93
const access = promisify(fs.access)
94
const isWindows = require('./utils/is-windows.js')
95
-const checkFilesPermission = async (root, shouldOwn = true, mask = null) => {
+const checkFilesPermission = async (root, shouldOwn, mask = null) => {
96
if (mask === null)
97
mask = shouldOwn ? R_OK | W_OK : R_OK
98
0 commit comments