mirror of
https://github.com/caprover/caprover
synced 2026-09-24 23:55:36 +00:00
Ensuring that logs are stringified
This commit is contained in:
@@ -1487,7 +1487,13 @@ class DockerApi {
|
||||
})
|
||||
})
|
||||
.then(function(data) {
|
||||
return data && data.toString ? data.toString('utf8') : data
|
||||
if (Buffer.isBuffer(data)) {
|
||||
return data.toString('utf8')
|
||||
}
|
||||
|
||||
throw new Error(
|
||||
'Logs are not instance of Buffer! Cannot be parsed!!'
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user