diff Button.lua @ 258:a7d2efb6ffc9 stable

Merge 1.1 beta 5 to stable
author Flick
date Tue, 12 Apr 2011 16:07:21 -0700
parents 46b59a9ded76
children c918ff9ac787
line wrap: on
line diff
--- a/Button.lua	Tue Apr 12 16:06:31 2011 -0700
+++ b/Button.lua	Tue Apr 12 16:07:21 2011 -0700
@@ -233,7 +233,7 @@
       end
       if id == nil then
         if unique then
-          return nil
+          error(("All action IDs for bars of type '%s' are in use, cannot create any more buttons"):format(self.config.barType))
         end
         pool.nWraps = nWraps + 1
       end