Skip to content

Commit cdaf830

Browse files
committed
fix(gitcommit): improve error message clarity for no commits found
1 parent 3472947 commit cdaf830

File tree

1 file changed

+1
-1
lines changed
  • lua/codecompanion/_extensions/gitcommit

1 file changed

+1
-1
lines changed

lua/codecompanion/_extensions/gitcommit/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ local function setup_slash_commands(opts)
230230
end
231231
end
232232
if #items == 0 then
233-
return chat:add_context({ role = "user", content = "No commits found." }, "git", "<git_error>")
233+
return chat:add_context({ role = "user", content = "Error: No commits found." }, "git", "<git_error>")
234234
end
235235
select_commit(chat, items)
236236
else

0 commit comments

Comments
 (0)