From d7eb2eeec566da6cfd1c61b1d7aa6fc592d1b296 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 17 Sep 2022 22:35:38 +0200 Subject: feat: more competent platform detection (#436) --- lua/mason-core/managers/github/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lua/mason-core/managers/github/init.lua') diff --git a/lua/mason-core/managers/github/init.lua b/lua/mason-core/managers/github/init.lua index a3cbd103..ebf98164 100644 --- a/lua/mason-core/managers/github/init.lua +++ b/lua/mason-core/managers/github/init.lua @@ -86,10 +86,10 @@ function M.release_file(opts) end if not asset_file then error( - ("Could not find which release file to download.\nMost likely the current operating system, architecture (%s), or libc (%s) is not supported."):format( - platform.arch, - platform.get_libc() - ), + ( + "Could not find which release file to download.\n" + .. "Most likely the current operating system or architecture is not supported (%s_%s)." + ):format(platform.sysname, platform.arch), 0 ) end -- cgit v1.2.3-70-g09d2