summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-01-04 22:43:33 +0800
committerGitHub <[email protected]>2022-01-04 22:43:33 +0800
commit645c16057e2bc6c643d43af8dc29ccd76b1a480f (patch)
tree5fb432ec0f65928e9c44ad025d88085d605a96fa
parent19c7311b0427ff88cd679a9e75c76f9f686d3c43 (diff)
Update main.lua
-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