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
➜ Lua
➜ How can I log the error info
|
How can I log the error info
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Ronnie_pang
(1 post) Bio
|
| Date
| Sat 01 Jun 2013 10:58 AM (UTC) Amended on Sat 01 Jun 2013 11:24 AM (UTC) by Ronnie_pang
|
| Message
| Hey guys,
The mushcleint only show the detail info of the Run-time error when it first appeared
How can I log the Run-time error to a file when it first appeared? The error info is as following(Sometimes instead of loading errors, but a function of the running script error,like variable got nil value,etc):
Run-time error
World: pang_4.0
Immediate execution
D:\software\MUSHclient\worlds\locale\Learn.lua:5: unexpected symbol near '='
stack traceback:
[C]: in function 'dofile'
[string "Command line"]:1: in main chunk | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 03 Jun 2013 10:55 AM (UTC) |
| Message
| | I don't think you can do this right now. However you can use pcall (protected call) to protect function calls and then do your own error handling. |
- 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.
9,761 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top