mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 01:06:36 +00:00
fix(image-writer): Remove use of _.isError
`_.isError()` returns `true` for anything that has a `name` and `message` property, causing the check here to always keep the plain object as error. Change-Type: patch
This commit is contained in:
parent
347932b213
commit
c225dd89c6
@ -118,7 +118,7 @@ exports.performWrite = (image, drives, onProgress) => {
|
||||
return new Bluebird((resolve, reject) => {
|
||||
ipc.server.on('error', (error) => {
|
||||
terminateServer()
|
||||
const errorObject = _.isError(error) ? error : errors.fromJSON(error)
|
||||
const errorObject = errors.fromJSON(error)
|
||||
reject(errorObject)
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user