Move _VERSION field
This commit is contained in:
parent
82bcf6f96d
commit
25d507fcea
|
@ -2,6 +2,8 @@
|
||||||
--
|
--
|
||||||
-- Lua library for advanced error handling.
|
-- Lua library for advanced error handling.
|
||||||
|
|
||||||
|
local _VERSION = '0.5.5'
|
||||||
|
|
||||||
local string_dist
|
local string_dist
|
||||||
do
|
do
|
||||||
local this_path = ... and (...):match('.+%.') or ''
|
local this_path = ... and (...):match('.+%.') or ''
|
||||||
|
@ -133,7 +135,7 @@ end
|
||||||
|
|
||||||
local ErrorHandler_mt = {__call = function (self, ...) internal_error(self, '', ...) end}
|
local ErrorHandler_mt = {__call = function (self, ...) internal_error(self, '', ...) end}
|
||||||
|
|
||||||
local errors = {}
|
local errors = {_VERSION=_VERSION}
|
||||||
|
|
||||||
function errors.new(module_name)
|
function errors.new(module_name)
|
||||||
assert(type(module_name) == 'string')
|
assert(type(module_name) == 'string')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user