diff options
| author | ruki <[email protected]> | 2018-02-08 22:47:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-02-08 10:47:02 +0800 |
| commit | 09420f3fa716d2022f9de29d9b04a386f6f4bf6a (patch) | |
| tree | be0a6345e3dec7961a164580a9492c4097a340c7 | |
| parent | ffcaa17712fa94c1c45b3e029aace073e955a372 (diff) | |
add more error tips for add_files
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files 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 |
