fix: convert some warnings to errors
This commit is contained in:
+4
-4
@@ -56,7 +56,7 @@ function Repo:_fetch_status()
|
||||
{ cwd = self.worktree, text = true },
|
||||
vim.schedule_wrap(function(obj)
|
||||
if obj.code ~= 0 then
|
||||
util.warning(
|
||||
util.error(
|
||||
"git status failed: %s",
|
||||
vim.trim(obj.stderr or "")
|
||||
)
|
||||
@@ -95,7 +95,7 @@ end
|
||||
function Repo:start_watcher()
|
||||
local watcher, err = vim.uv.new_fs_event()
|
||||
if not watcher then
|
||||
util.warning(
|
||||
util.error(
|
||||
"git: failed to create fs_event for %s: %s",
|
||||
self.gitdir,
|
||||
err
|
||||
@@ -117,7 +117,7 @@ function Repo:start_watcher()
|
||||
end
|
||||
)
|
||||
if not ok then
|
||||
util.warning("failed to watch %s: %s", self.gitdir, tostring(start_err))
|
||||
util.error("failed to watch %s: %s", self.gitdir, tostring(start_err))
|
||||
watcher:close()
|
||||
return
|
||||
end
|
||||
@@ -323,7 +323,7 @@ function M.resolve(arg)
|
||||
f:close()
|
||||
local rel = content:match("gitdir:%s*(%S+)")
|
||||
if not rel then
|
||||
util.warning(".git file at %s has no `gitdir:` line", found)
|
||||
util.error(".git file at %s has no `gitdir:` line", found)
|
||||
return nil
|
||||
end
|
||||
gitdir = vim.fs.normalize(
|
||||
|
||||
Reference in New Issue
Block a user