From 645c16057e2bc6c643d43af8dc29ccd76b1a480f Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 4 Jan 2022 22:43:33 +0800 Subject: Update main.lua --- xmake/actions/config/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index dcf5986dc..23ef3fe43 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -316,7 +316,8 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) -- merge configuration from the given import file local importfile = option.get("import") - if importfile and os.isfile(importfile) then + if importfile then + assert(os.isfile(importfile), "%s not found!", importfile) if config.load(importfile) then options_changed = true end -- cgit v1.3.1