fix: convert some warnings to errors

This commit is contained in:
2026-05-06 01:33:39 +02:00
parent c70d5dfce5
commit 2a81c50156
7 changed files with 23 additions and 23 deletions
+4 -4
View File
@@ -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(