mIRC Homepage
Posted By: westor $md5(FILE,2) halts the code on error - 21/10/18 11:00 AM
Hello and greetings from Zenkhausen,

I am not sure if this is bug or by design but when i try to access a not-exist file via $md5(FILE,2) it returns an scripting error and halts the code to proceed as it should only return $null to avoid that, if this is by design i cannot find any breaking backward compatibility if you change it to return $null instead code halt and error, correct me if i am wrong.

Edit: same for $sha*() identifiers, $crc() seems returns "00000000" instead of $null or accessing error.

- Thanks!
Posted By: Khaled Re: $md5(FILE,2) halts the code on error - 21/10/18 11:20 AM
Thanks for your bug report. This is definitely by design. If the file does not exist, it should report an error. Unfortunately, $crc() cannot be changed to report an error as it would break backward compatibility.
© mIRC Discussion Forums