Hello, when the program gives an error anywhere, it closes by saying "fail". I also want to write a script if it fails. It is not clear where it will give the error, how do I do this? for example I want to run write file when it gives an error
@givirus its because of your script logic, maybe you dont call the function? OR you dont have proper error handling which results into certain parts of your script being skipped since they are inside an if statement. I encountered this problem many times in the past, you will need to handle errors and it'll will be most likely fixed, for the purpose of debugging you can use the "Log" function at several points to see where it will print it.