1
0

Move _VERSION field

This commit is contained in:
Jon Michael Aanes 2025-04-17 16:20:02 +02:00
parent 82bcf6f96d
commit 25d507fcea
2 changed files with 3 additions and 4 deletions

View File

@ -2,6 +2,8 @@
--
-- Lua library for advanced error handling.
local _VERSION = '0.5.5'
local string_dist
do
local this_path = ... and (...):match('.+%.') or ''
@ -133,7 +135,7 @@ end
local ErrorHandler_mt = {__call = function (self, ...) internal_error(self, '', ...) end}
local errors = {}
local errors = {_VERSION=_VERSION}
function errors.new(module_name)
assert(type(module_name) == 'string')

View File

@ -1,5 +1,2 @@
local _VERSION = '0.5.5'
local errors = require (((...) ~= 'init' and (...) .. '.' or '') .. 'errors')
errors._VERSION = _VERSION
return errors