We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cba0eff commit 7433fa0Copy full SHA for 7433fa0
lua/tinygit/init.lua
@@ -41,6 +41,10 @@ setmetatable(M, {
41
end
42
43
local module = M.cmdToModuleMap[key]
44
+ if not module then
45
+ u.notify(("Unknown command `%s`."):format(key), "warn")
46
+ return function() end -- prevent function call throwing error
47
+ end
48
require("tinygit.commands." .. module)[key](...)
49
50
end,
0 commit comments