Diff

plugins/mod_posix.lua @ 5452:edf3db386a19

mod_posix: Improve error message for a pposix version mismatch
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Apr 2013 17:21:16 +0100
parent 5451:941ad88db8f3
child 5776:bd0ff8ae98a8
child 6357:ccae56e34956
line wrap: on
line diff
--- 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