diff options
| author | ruki <[email protected]> | 2016-07-14 16:51:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-14 16:51:17 +0800 |
| commit | dfe578f0d1ffc49f280a6b60724cf8c69674d451 (patch) | |
| tree | 5b0d3f4e0fabb2badfc0ac8544a71ca4c087ac1c /xmake/core/base/utils.lua | |
| parent | 8eb084ef12dccf72659704252f13cc3eea4b8fa6 (diff) | |
fix check vs issue
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index b3891c0ce..eba9bcf35 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -78,6 +78,17 @@ function utils.verbose(format, ...) end end +-- the verbose error function +function utils.verror(format, ...) + + -- enable verbose? + if option.get("verbose") and format ~= nil then + + -- trace + utils.cprint("${bright red}error: ${default red}" .. string.format(format, ...)) + end +end + -- the error function function utils.error(format, ...) |
