mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-13 14:26:36 +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,18 +175,17 @@ module.exports = function (
|
|||||||
$timeout()
|
$timeout()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
})
|
||||||
const imageError = errors.createUserError({
|
.catch((error) => {
|
||||||
title: 'Error opening image',
|
const imageError = errors.createUserError({
|
||||||
description: messages.error.openImage(path.basename(imagePath), error.message)
|
title: 'Error opening image',
|
||||||
})
|
description: messages.error.openImage(path.basename(imagePath), error.message)
|
||||||
osDialog.showError(imageError)
|
})
|
||||||
analytics.logException(error)
|
osDialog.showError(imageError)
|
||||||
})
|
analytics.logException(error)
|
||||||
.then(() => {
|
})
|
||||||
return innerSource.close()
|
.finally(() => {
|
||||||
.catch(_.noop)
|
return source.close().catch(_.noop)
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user