From 38938b29e892868bbe316d9d4ed5951d1d80788e Mon Sep 17 00:00:00 2001 From: Rui Marques Date: Thu, 17 Jun 2021 23:03:45 +0100 Subject: [PATCH] fix(hosts): fix error msg when host not found Closes #16 --- lua/gitlinker/hosts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlinker/hosts.lua b/lua/gitlinker/hosts.lua index aea9a31..b376832 100644 --- a/lua/gitlinker/hosts.lua +++ b/lua/gitlinker/hosts.lua @@ -113,7 +113,7 @@ function M.get_matching_callback(target_host) end end if not matching_callback then - error("No host callback defined for host '%s'", target_host) + error(string.format("No host callback defined for host '%s'", target_host)) end return matching_callback end