From f9dc65246f5d46583d00db93761929b6c6b5bf20 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 29 May 2023 14:53:42 +0200 Subject: 2023-05-29 14:15:00 --- scripts/context/lua/mtx-install.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts/context/lua/mtx-install.lua') diff --git a/scripts/context/lua/mtx-install.lua b/scripts/context/lua/mtx-install.lua index 64200ef2e..ad2e629dc 100644 --- a/scripts/context/lua/mtx-install.lua +++ b/scripts/context/lua/mtx-install.lua @@ -63,7 +63,11 @@ local function fetch(url) data, detail = httprequest(url) end if type(data) ~= "string" then - data = false + data = false + detail = "download failed" + elseif #data == 0 then + data = false + detail = "download failed, zero length" elseif #data < 2048 then local n, t = find(data,"%s*%s*(%d+)%s(.-)") if tonumber(n) then @@ -557,8 +561,8 @@ function install.update() local cdir = currentdir() local pdir = pushdir(binpath) - report("current : %S",cdir) - report("target : %S",pdir) + report("current : %S",cdir or "") + report("target : %S",pdir or "") if pdir ~= cdir then -- cgit v1.2.3