mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
Actually parse error messages of du & df to String
This commit is contained in:
parent
98d38d3402
commit
7aaf913166
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user