summaryrefslogtreecommitdiff
path: root/xmake/core/base/utils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-02 22:37:00 +0800
committerruki <[email protected]>2019-01-02 09:42:04 +0800
commitcc976c3fc70c83373e2984ee26ccbff4df5efa85 (patch)
tree4bfe845d1040fc15a798bffbb8aebbd241f8550d /xmake/core/base/utils.lua
parent59c8c59a2983c329118f7839b9949635a85183f5 (diff)
add plain theme
Diffstat (limited to 'xmake/core/base/utils.lua')
-rw-r--r--xmake/core/base/utils.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua
index dd54fb9ae..27e59c253 100644
--- a/xmake/core/base/utils.lua
+++ b/xmake/core/base/utils.lua
@@ -150,7 +150,7 @@ end
-- print the error information
function utils.error(format, ...)
if format ~= nil then
- utils.cprint("${bright red}error: ${clear}" .. string.tryformat(format, ...))
+ utils.cprint("${color.error}error: ${clear}" .. string.tryformat(format, ...))
log:flush()
end
end
@@ -162,7 +162,7 @@ function utils.warning(format, ...)
assert(format)
-- format message
- local msg = "${bright yellow}warning: ${default yellow}" .. string.tryformat(format, ...)
+ local msg = "${color.warning}warning: ${default yellow}" .. string.tryformat(format, ...)
-- init warnings
utils._WARNINGS = utils._WARNINGS or {}