mod_posix: Improve error message for a pposix version mismatch
authorMatthew Wild <mwild1@gmail.com>
Mon, 08 Apr 2013 17:21:16 +0100
changeset 5452 edf3db386a19
parent 5451 941ad88db8f3
child 5453 116971a751d3
child 5454 5f69fddf6fb9
mod_posix: Improve error message for a pposix version mismatch
plugins/mod_posix.lua
--- a/plugins/mod_posix.lua	Mon Apr 08 16:57:59 2013 +0100
+++ b/plugins/mod_posix.lua	Mon Apr 08 17:21:16 2013 +0100
@@ -10,7 +10,9 @@
 local want_pposix_version = "0.3.6";
 
 local pposix = assert(require "util.pposix");
-if pposix._VERSION ~= want_pposix_version then module:log("warn", "Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version); end
+if pposix._VERSION ~= want_pposix_version then
+	module:log("warn", "Unknown version (%s) of binary pposix module, expected %s. Perhaps you need to recompile?", tostring(pposix._VERSION), want_pposix_version);
+end
 
 local signal = select(2, pcall(require, "util.signal"));
 if type(signal) == "string" then