aboutsummaryrefslogtreecommitdiff
path: root/src/mime.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/mime.lua')
-rw-r--r--src/mime.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mime.lua b/src/mime.lua
index 3182545..eb75db2 100644
--- a/src/mime.lua
+++ b/src/mime.lua
@@ -27,7 +27,8 @@ local function choose(table)
27 name, opt1, opt2 = "default", name, opt1 27 name, opt1, opt2 = "default", name, opt1
28 end 28 end
29 local f = table[name or "nil"] 29 local f = table[name or "nil"]
30 if not f then error("unknown key (" .. base.tostring(name) .. ")", 3) 30 if not f then
31 base.error("unknown key (" .. base.tostring(name) .. ")", 3)
31 else return f(opt1, opt2) end 32 else return f(opt1, opt2) end
32 end 33 end
33end 34end