mIRC Home    About    Download    Register    News    Help

Print Thread
$error #73960 06/03/04 12:26 AM
Joined: Dec 2002
Posts: 56
Infernal_Demon Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 56
I think this is not a very useful function.
For every alias in my script I will have to put a :erro and $error doesnīt give me the file name or the line were the error occurred.

The smartest thing you could do is add an error event, like:
on *:scripterror: {
echo -s Error found: $error
}

This would be usefull for people that have their scripts on the net and when an error occurs the users donīt know what to say because they cleared the text or there mirc closed down, and just say that something went wrong. With this, there could be an erro log created and the user would just send them the file.

(I know I posted this in the bugs sections, I am sorry)

Re: $error #73961 06/03/04 02:13 AM
Joined: Dec 2002
Posts: 230
G
greeny Offline
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
I second this.

Re: $error #73962 06/03/04 02:56 AM
Joined: Sep 2003
Posts: 149
S
Stealth Offline
Vogon poet
Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
This feature would not be usefull in this form. It needs to be expanded, like this:

Have an identifyer return the script name that the error occured in.

Have an identifyer return the line that the error occoured in.

and so-on

This would be usefull for the larger scripts so people dont need the error goto in every little event and alias.


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
Re: $error #73963 06/03/04 04:25 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I think the best thing to do would be add an error event aswell as $error, and have it triggered just 'above' the default error-handling. So when an error occurred it would go through these steps:
- current alias' error jump-point code.
- propagate through calling aliases' error-handling code.
- call script error event(s).
- mIRC's default error-handling code.

And of course allow /reseterror to halt the error-handling at any point. This way you can have alias-specific handling and/or generic handling.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: $error #73964 06/03/04 08:38 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Personally id just like a /resume or /resumenext or /resumeat

I have used /resumenext to just crash my way down to something that works (pretty rude but sometimes its better than stopping altogether)

Re: $error #73965 11/03/04 09:20 PM
Joined: Dec 2002
Posts: 31
N
Netchelandorious Offline
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2002
Posts: 31
I'd like a /raiseerror command, an alternative to returning from or halting the current alias if required conditions for it's operation are not met. /raiseerror could abort the current alias, not going to the error handling for that alias.
(edit)
But I suppose this thread is too far back to get much notice for new suggestions?

Last edited by Netchelandorious; 11/03/04 09:22 PM.
Re: $error #73966 11/03/04 09:33 PM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
No, a lot of people have forum threads set to show the most active in the past 2 weeks (or another short space of time) so even if a thread is 6 months old (or more) if someone replies to it, they can see that it has been replied to. And 3 days really doesn't make it that inactive :-)

You can set your Forum options by going to the "My Home" link at the top, scroll down and click on 'Edit' next to the words "Display preferences, number of shown threads, languages, colors...".

Have fun!

Regards,


Mentality/Chris