Thread Tools Display Modes
10-18-05, 01:02 PM   #1
FishMan123
A Defias Bandit
Join Date: Oct 2005
Posts: 2
Need help fixing the ERROR MESSAGE window

Sorry if this is a noob question, but I'm stuck.

After the 1.8 upgrade, I'm getting a LUA error from my script. It pops up the standard error frame in the middle of the screen, but unfortunately the text extends beyond the frame and all I see is the path to the LUA file and part of the file name (non-unique in this case). I can't see the line number or the specific error message. (I seem to remember that before the upgrade, the text wrapped in the error window. Now I just get the 1 line.)

With some errors, the LUA script will abort. In these cases, I can embed prints to the chat window to narrow down the problem. In this case, the error must be non-fatal, because the script continues - making it very hard to identify the problem.

Is there an easy way to access the entire text of the error? Can I print the error to the chat window? Or use a smaller font?

I'm not looking for something big and fancy, I just need to see the error message.

Any help GREATLY appreciated. Thanks.
  Reply With Quote
10-18-05, 01:53 PM   #2
shouryuu
A Chromatic Dragonspawn
 
shouryuu's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 150
Well this is more a shot in the dark than anything else but I'm guessing everything is worth a try. You could try using this http://www.wowwiki.com/API_FontString_GetText . Ain't guaranteing nothing
  Reply With Quote
10-18-05, 03:04 PM   #3
Ego
A Deviate Faerie Dragon
 
Ego's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 15
work around

From the WoW UI forum

http://forums.worldofwarcraft.com/th...p=1#post240588
  Reply With Quote
10-18-05, 03:23 PM   #4
FishMan123
A Defias Bandit
Join Date: Oct 2005
Posts: 2
Thanks Ego! That's just what I was looking for.
  Reply With Quote
10-18-05, 03:23 PM   #5
shouryuu
A Chromatic Dragonspawn
 
shouryuu's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 150
That's one way of saying I wasn't helpful
  Reply With Quote
10-19-05, 01:23 AM   #6
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 131
you could also use ImprovedErrorFrame: http://www.curse-gaming.com/mod.php?addid=170
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Need help fixing the ERROR MESSAGE window


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off