summaryrefslogtreecommitdiff
path: root/util.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-04 20:48:28 +0100
committerubq323 <ubq323@ubq323.website>2022-08-04 20:48:28 +0100
commit30869f88297faa5f696b47f4e18a26ff817cdf03 (patch)
tree683be7e8e709d2d792d39f5971adebdc08c985ad /util.lua
parent0f09a861ff88da2f0aec4e515c2fad9658fe1e06 (diff)
img
Diffstat (limited to 'util.lua')
-rw-r--r--util.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/util.lua b/util.lua
new file mode 100644
index 0000000..109ac67
--- /dev/null
+++ b/util.lua
@@ -0,0 +1,7 @@
+local function perr(err,what)
+ if err then error(what..": "..err) end
+end
+
+return {
+ perr=perr,
+}