From 09420f3fa716d2022f9de29d9b04a386f6f4bf6a Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Feb 2018 22:47:50 +0800 Subject: add more error tips for add_files --- xmake/core/project/target.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index e5dd28f33..3728738be 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -435,7 +435,7 @@ function target:fileconfig(sourcefile) local results = os.match(filepath) if #results == 0 then local sourceinfo = (self:get("__sourceinfo_files") or {})[filepath] or {} - utils.warning("cannot match add_files(\"%s\") at %s:%d", filepath, sourceinfo.file or "", sourceinfo.line or -1) + utils.warning("cannot match %s(%s).add_files(\"%s\") at %s:%d", self:type(), self:name(), filepath, sourceinfo.file or "", sourceinfo.line or -1) end -- process source files @@ -513,7 +513,7 @@ function target:sourcefiles() local results = os.match(file) if #results == 0 then local sourceinfo = (self:get("__sourceinfo_files") or {})[file] or {} - utils.warning("cannot match %s_files(\"%s\") at %s:%d", utils.ifelse(deleted, "del", "add"), file, sourceinfo.file or "", sourceinfo.line or -1) + utils.warning("cannot match %s(%s).%s_files(\"%s\") at %s:%d", self:type(), self:name(), utils.ifelse(deleted, "del", "add"), file, sourceinfo.file or "", sourceinfo.line or -1) end -- process source files -- cgit v1.3.1