diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-02 17:27:39 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-07-02 17:27:39 +0200 |
commit | 8ee6441fc524b6ffc65fe327485cb8500b7a63f9 (patch) | |
tree | 2923f7e03c95db8d4506051c53bd8b86d5228600 /teal-src/util/compat.d.tl | |
parent | c8a49ad14411a858ceb3cc4c4df091d31cb90ed7 (diff) | |
download | prosody-8ee6441fc524b6ffc65fe327485cb8500b7a63f9.tar.gz prosody-8ee6441fc524b6ffc65fe327485cb8500b7a63f9.zip |
executables: Reject Lua 5.1 early
Prevents attempting to load libraries that may no longer be found and
crashing with a traceback.
Platforms like Debian where multiple Lua versions can be installed at
the same time and 'lua' pointing to one of the installed interpreters
via symlinks, there's the possibility that prosody/prosodyctl may be
invoked with Lua 5.1, which will no longer have any of the rest of
Prosody libraries available to be require(), and thus would immediately
fail with an unfriendly traceback.
Checking and aborting early with a friendlier message and reference to
more information is better.
Part of #1600
Diffstat (limited to 'teal-src/util/compat.d.tl')
0 files changed, 0 insertions, 0 deletions