1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
32a924fa4e 🤖 Bumped version to 0.5.3
Some checks failed
LÖVE/Lua Library / Test (push) Failing after 5s
LÖVE/Lua Library / Static-Analysis (push) Failing after 3s
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-10 19:27:05 +02:00
c1eb786af8
🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-10 19:26:03 +02:00
5d23df5494
Improved docstring 2024-07-10 19:17:22 +02:00
5 changed files with 32 additions and 14 deletions

7
LICENSE Normal file
View File

@ -0,0 +1,7 @@
"THE BEER-WARE LICENSE" (Revision 42):
<jonjmaa@gmail.com> wrote this program. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
Jon Michael Aanes

View File

@ -1,6 +0,0 @@
<jonjmaa@gmail.com> wrote this library. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
- Jon Michael Aanes

View File

@ -1,3 +1,19 @@
# Errors
<!--- WARNING --->
<!--- THIS IS AN AUTO-GENERATED FILE --->
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
Lua Library for advanced error handling.
# Lua library for advanced error handling.
# License
```
"THE BEER-WARE LICENSE" (Revision 42):
<jonjmaa@gmail.com> wrote this program. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.
Jon Michael Aanes
```

View File

@ -1,14 +1,15 @@
-- Check for possible loading errors
--- # Errors
--
-- Lua library for advanced error handling.
local string_dist
do
local thispath = ... and (...):match('.+%.') or ''
local this_path = ... and (...):match('.+%.') or ''
local function import (name, ignore_failure)
local was_loaded, lib_or_error = pcall(require, thispath..name)
local was_loaded, lib_or_error = pcall(require, this_path..name)
if not was_loaded then
if ignore_failure then return nil end
error('['..thispath..']: Could not load vital library: '..name..'.lua:\n\t'..lib_or_error)
error('['..this_path..']: Could not load vital library: '..name..'.lua:\n\t'..lib_or_error)
end
return lib_or_error
end

View File

@ -1,4 +1,4 @@
local _VERSION = '0.5.2'
local _VERSION = '0.5.3'
local errors = require (((...) ~= 'init' and (...) .. '.' or '') .. 'errors')
errors._VERSION = _VERSION