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
➜ Omit compile errors
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Rmf113
(5 posts) Bio
|
| Date
| Wed 19 Sep 2012 04:33 PM (UTC) |
| Message
| Is there a way to turn off error reporting so that compile errors do not appear? At present I only see 2 options..
Errors appear in an error window which takes the focus away frrm the main window or..
Errors appearing in Note form in the main window which clutters up the output.
I know the obvious response will be to fix whatever is causing the compile error but it is timing related and I don't have the time to find a workaround at the moment so would just prefer to be oblivious to the errors for the time being if there is an easy way to do this? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 19 Sep 2012 10:01 PM (UTC) |
| Message
| Is this in a trigger or plugin or something?
Do you really mean compile errors or runtime errors?
You can do a pcall of a function that catches errors:
http://www.gammon.com.au/scripts/doc.php?lua=pcall
The error could then be ignored, written to a disk file or something.
The errors in note form which "clutter up the output" must be happening a lot for it to be annoying. I would be trying to fix it, or at least change the code that if the error condition occurs, it jumps around that part. eg.
if foo then
-- do this only if foo is not-nil
end -- if
|
- 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.
11,244 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top