Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Aliases -- More verbose error messages
Aliases -- More verbose error messages
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Katie Love
(19 posts) Bio
|
Date
| Mon 02 Mar 2009 03:36 AM (UTC) |
Message
| Is there a way we can get the alias/trigger/etc name in error output. for example:
Immediate execution
[string "Alias: "]:39: bad argument #2 to 'SetVariable' (string expected, got nil)
stack traceback:
[C]: in function 'SetVariable'
[string "Alias: "]:39: in main chunk
This is a really easy problem to fix -- but I have no idea which alias the error is in. Is there a way to get that information?
Thanks!!! :-) | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Mon 02 Mar 2009 04:40 AM (UTC) |
Message
| Pretty sure it already does this as long as you give names to them. They don't require a name, so make sure you've given it a name. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Mon 02 Mar 2009 05:28 AM (UTC) |
Message
| Quite right. Giving aliases and triggers a name makes the error message more helpful.
Also try turning on Game -> Trace. If you do that you see what alias matched, like this:
TRACE: Matched alias "blah"
Compile error
World: smaug 2
Immediate execution
[string "Alias: "]:1: unexpected symbol near '<eof>'
Now I can see that the alias that matched "blah" caused the error. Similarly with triggers. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,150 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top