summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/config/main.lua3
1 files changed, 2 insertions, 1 deletions
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