From bc6da2bc840e8864ce61c01318e2784a1dae20e3 Mon Sep 17 00:00:00 2001 From: goring <67476208+goring@users.noreply.github.com> Date: Sun, 17 Sep 2023 17:28:36 +0100 Subject: [PATCH] fix: error log when no command action specified --- lua/octo/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/octo/commands.lua b/lua/octo/commands.lua index 0391aa32..aacf0a8b 100644 --- a/lua/octo/commands.lua +++ b/lua/octo/commands.lua @@ -362,7 +362,7 @@ function M.octo(object, action, ...) local a = o[action] if not a then - utils.error("Incorrect action: " .. action) + utils.error(action and "Incorrect action: " .. action or "No action specified") return else a(...)