Added error handling when a file can't be blamed
This commit is contained in:
parent
60a1ef21d8
commit
cd06819cfd
@ -328,7 +328,7 @@ class TabViewModel @Inject constructor(
|
||||
val result = git.blame()
|
||||
.setFilePath(filePath)
|
||||
.setFollowFileRenames(true)
|
||||
.call()
|
||||
.call() ?: throw Exception("File is no longer present in the workspace and can't be blamed")
|
||||
|
||||
_blameState.value = BlameState.Loaded(filePath, result)
|
||||
} catch (ex: Exception) {
|
||||
|
Loading…
Reference in New Issue
Block a user