Skip to content

Commit

Permalink
Propagate exceptions to the storage dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarashev committed Aug 2, 2024
1 parent 15e02da commit 30cff7e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,12 @@ internal class ProjectOpenStrategy(
localChannel.send(document)
} else {
// It is an online document and we fetch it.
val currentFetch = online.fetchResultProperty.get() ?: online.fetch().also { it.update() }
processFetchResult(currentFetch, document, localChannel)
try {
val currentFetch = online.fetchResultProperty.get() ?: online.fetch().also { it.update() }
processFetchResult(currentFetch, document, localChannel)
} catch (ex: Exception) {
localChannel.close(ex)
}
}
}
}
Expand Down

0 comments on commit 30cff7e

Please sign in to comment.