mIRC Home    About    Download    Register    News    Help

Print Thread
#228562 30/12/10 09:06 AM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Hello,

I have about 15 scripts with about 100+ more $iif identifier into my scripts and at one point one $iif return me an error how can i know where it is the error in which line or in which file it is

now is : * Invalid format: $iif

i wonder if can be like this: * Invalid format: $iif (line 100, script1.mrc)

- Thanks!

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Supported simply due to the fact that this would maintain consistency with most of the other error messages.

Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
i did not understand what u mean

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Your suggestion would simply make the method of error reporting for $iif match that of other commands (like $read), thus I support it.

Hopefully you understand this, or a translator will give a decent translation.

Joined: Jan 2009
Posts: 116
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2009
Posts: 116
I'm fairly sure that this issue exists in other identifiers/commands as well, though I cannot recall any from the top of my head.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Originally Posted By: Knoeki
I'm fairly sure that this issue exists in other identifiers/commands as well, though I cannot recall any from the top of my head.


Yeah, there are others missing error messages when used incorrectly or with errors that don't help track down the problem. One example is $base() if you use incorrect base types. It doesn't give you an error message other than whatever error may result in it being $null (such as when used as the only item in an echo). For example, $base(1000,50,10). For that matter, it does accept certain base types that aren't really valid (such as 19), though I suppose that just allows for potential new base types. It also does allow for an alphanumeric base conversion, which can be useful even if it doesn't allow for case sensitivity while doing so. So I guess allowing unusual base types if okay... it's just that the ones that aren't allowed don't throw any errors.

There are a variety of others as well that could use improved error reporting.

Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Originally Posted By: Knoeki
I'm fairly sure that this issue exists in other identifiers/commands as well, though I cannot recall any from the top of my head.


Yes there are more, from now i find the $iif , $base , $read as reported before by other users.


Link Copied to Clipboard