mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-26 16:27:18 +00:00
Fix error message not showing when an unsupported image is selected
Changelog-entry: Fix error message not showing when an unsupported image is selected Change-type: patch
This commit is contained in:
parent
6b6a0d7b4f
commit
f0374cf9d9
@ -175,6 +175,7 @@ module.exports = function (
|
|||||||
$timeout()
|
$timeout()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const imageError = errors.createUserError({
|
const imageError = errors.createUserError({
|
||||||
title: 'Error opening image',
|
title: 'Error opening image',
|
||||||
@ -183,10 +184,8 @@ module.exports = function (
|
|||||||
osDialog.showError(imageError)
|
osDialog.showError(imageError)
|
||||||
analytics.logException(error)
|
analytics.logException(error)
|
||||||
})
|
})
|
||||||
.then(() => {
|
.finally(() => {
|
||||||
return innerSource.close()
|
return source.close().catch(_.noop)
|
||||||
.catch(_.noop)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user