Actually parse error messages of du & df to String

This commit is contained in:
Bobby Wibowo 2019-11-14 14:46:49 +07:00
parent 98d38d3402
commit 7aaf913166
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -623,7 +623,7 @@ self.stats = async (req, res, next) => {
})
const stderr = []
proc.stderr.on('data', data => stderr.push(data))
proc.stderr.on('data', data => stderr.push(String(data)))
proc.on('exit', code => {
if (code !== 0) return reject(stderr)
@ -656,7 +656,7 @@ self.stats = async (req, res, next) => {
})
const stderr = []
proc.stderr.on('data', data => stderr.push(data))
proc.stderr.on('data', data => stderr.push(String(data)))
proc.on('exit', code => {
if (code !== 0) return reject(stderr)
@ -695,7 +695,7 @@ self.stats = async (req, res, next) => {
})
const stderr = []
proc.stderr.on('data', data => stderr.push(data))
proc.stderr.on('data', data => stderr.push(String(data)))
proc.on('exit', code => {
if (code !== 0) return reject(stderr)