diff Modules/Frames.lua @ 159:fbfd9dfa6d2b tip

[mq]: minorStuff
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sun, 09 Jan 2011 07:38:22 -0800
parents f37ab41f1928
children
line wrap: on
line diff
--- a/Modules/Frames.lua	Wed Dec 15 23:15:17 2010 -0800
+++ b/Modules/Frames.lua	Sun Jan 09 07:38:22 2011 -0800
@@ -27,6 +27,7 @@
 	end
 	
 	currentContent = cb(container)
+	assert(currentContent, format("The callback for %s must return a frame in order for tab switching to work.", tostring(group)))
 end
 
 function Frames.CreateFrame(selectedTab)