Added an error log message for this case

Wed, 03 Dec 2008 18:06:04 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 03 Dec 2008 18:06:04 +0000
changeset 532
c24471cadc2c
parent 531
724fd647dc56
child 535
74f32ac6db40
child 539
cbcadb1a6166

Added an error log message for this case

core/sessionmanager.lua file | annotate | diff | comparison | revisions
--- a/core/sessionmanager.lua	Wed Dec 03 18:01:56 2008 +0000
+++ b/core/sessionmanager.lua	Wed Dec 03 18:06:04 2008 +0000
@@ -80,6 +80,10 @@
 				log("debug", "All resources of %s are now offline", session.username);
 				hosts[session.host].sessions[session.username] = nil;
 			end
+		else
+			log("error", "host or session table didn't exist, please report this! Host: %s [%s] Sessions: %s [%s]", 
+					tostring(hosts[session.host]), tostring(session.host),
+					tostring(hosts[session.host].sessions[session.username] ), tostring(session.username));
 		end
 	end
 	

mercurial