Changeset

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
parents 5451:941ad88db8f3
children 5453:116971a751d3 5454:5f69fddf6fb9
files plugins/mod_posix.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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