summaryrefslogtreecommitdiff
path: root/src/bin/elua/modules/benchmark.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elua/modules/benchmark.lua')
-rw-r--r--src/bin/elua/modules/benchmark.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/elua/modules/benchmark.lua b/src/bin/elua/modules/benchmark.lua
index b7071318bd..3cc9e991e1 100644
--- a/src/bin/elua/modules/benchmark.lua
+++ b/src/bin/elua/modules/benchmark.lua
@@ -16,13 +16,11 @@ cutil.init_module(function()
dom = log.Domain("elua_benchmark")
if not dom:is_valid() then
log.err("Could not register log domain: elua_benchmark")
- return false
+ error("could not register log domain: elua_benchmark")
end
- return true
end, function()
dom:unregister()
dom = nil
- return true
end)
local PLOT_MASK = "bench_%s_%s.gnuplot"