message: 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
diff: @@ -175,6 +175,7 @@ module.exports = function (
  $timeout()
  })
  })
  + })
  .catch((error) => {
  const imageError = errors.createUserError({
  title: 'Error opening image',
  @@ -183,10 +184,8 @@ module.exports = function (
  osDialog.showError(imageError)
  analytics.logException(error)
  })
  - .then(() => {
  - return innerSource.close()
  - .catch(_.noop)
  - })
  + .finally(() => {
  + return source.close().catch(_.noop)
  })
  }
  