prosody
changeset 12582 10bb58ad5583
parent 12557 cc0ec0277813
child 12958 4f2accd99373
--- a/prosody	Tue Jul 05 14:59:47 2022 +0200
+++ b/prosody	Sat Jul 02 17:27:39 2022 +0200
@@ -44,6 +44,12 @@
 end
 
 
+-- Check before first require, to preempt the probable failure
+if _VERSION < "Lua 5.2" then
+	io.stderr:write("Prosody is no longer compatible with Lua 5.1\n")
+	io.stderr:write("See https://prosody.im/doc/depends#lua for more information\n")
+	return os.exit(1);
+end
 
 local startup = require "util.startup";
 local async = require "util.async";