From 3cadbfc7419542a8b56f0996bfbfbda146a30ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 23 Apr 2022 23:46:53 +0800 Subject: fix infer of `unknown and unknown` --- make/bootstrap.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'make') diff --git a/make/bootstrap.lua b/make/bootstrap.lua index 6c27cf95..00036f34 100644 --- a/make/bootstrap.lua +++ b/make/bootstrap.lua @@ -69,6 +69,9 @@ package.searchers[2] = function (name) return err end local f = io.open(filename) + if not f then + return 'cannot open file:' .. filename + end local buf = f:read '*a' f:close() local relative = filename:sub(1, #root) == root and filename:sub(#root + 2) or filename -- cgit v1.2.3