diff ReAction.lua @ 61:2ee41dcd673f

moved UserError from ConfigUI to ReAction
author Flick <flickerstreak@gmail.com>
date Tue, 13 May 2008 16:42:03 +0000
parents 44649a10378d
children 768be7eb22a0
line wrap: on
line diff
--- a/ReAction.lua	Sat May 10 00:08:01 2008 +0000
+++ b/ReAction.lua	Tue May 13 16:42:03 2008 +0000
@@ -240,6 +240,11 @@
 
 
 ------ API ------
+function ReAction:UserError(msg)
+  -- any user errors should be flashed to the UIErrorsFrame
+  UIErrorsFrame:AddMessage(msg)
+end
+
 function ReAction:CallMethodOnAllModules(method, ...)
   local m = CheckMethod(method)
   for _, x in self:IterateModules() do