summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-07-13 15:00:34 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-07-13 15:00:34 +0200
commite8b0693cc014c201a600aed32cec71044a72edce (patch)
tree817c5c7188674632f529642c74f849ccbb0278a5 /src
parent0c8c0abc6c1dafa129ccac2beca02b3c4afbccbf (diff)
downloadluaotfload-e8b0693cc014c201a600aed32cec71044a72edce.tar.gz
[colors] fix logging
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-colors.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index 67041fe..9be2974 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -19,6 +19,8 @@ explanation: http://tug.org/pipermail/luatex/2013-May/004305.html
--doc]]--
+local log = luaotfload.log
+local logreport = log.report
local newnode = node.new
local nodetype = node.id
@@ -81,8 +83,9 @@ local sanitize_color_expression = function (digits)
digits = tostring(digits)
local sanitized = lpegmatch(valid_digits, digits)
if not sanitized then
- luaotfload.warning(
- "%q is not a valid rgb[a] color expression", digits)
+ logreport("both", 0, "color",
+ "%q is not a valid rgb[a] color expression",
+ digits)
return nil
end
return sanitized