Skip to content

Commit

Permalink
15:25:37
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvirtin committed Dec 18, 2021
1 parent a111d72 commit bbd218a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lua/vgit/features/scenes/HistoryScene.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ function HistoryScene:fetch(selected)
err, logs = git_object:logs()
end
scheduler()
if err then
console.debug(err, debug.traceback())
cache.err = err
return self
end
local log = logs[selected]
if not log then
err = { 'Failed to access logs' }
Expand Down
2 changes: 1 addition & 1 deletion lua/vgit/ui/Component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function Component:set_error(value, force)
local cache = self.cache
if value then
self.error = value
self:set_centered_text('xxx')
self:set_centered_text('An error has occured')
else
self:add_syntax_highlights()
self.error = value
Expand Down

0 comments on commit bbd218a

Please sign in to comment.