Guest
Hi!
I'm trying to write an ocean script that will exit if certain error is encountered.
I'm using the following:
when(variable==nil
error("The data is unavailable further simulation has been canceled")
exit
)
That is just a segment of the code and it includes an exit statement at the end of the ocean file. Although I have several of those verifications the error message is correctly seen in the terminal although the program is not ending at that moment.
I'm running and debugging the ocean script by doing:
ocean < file.ocn
And then looking at the messages in the terminal window. I don't know what I'm doing wrong.
Thanks in advance for your help,
Fernando
I'm trying to write an ocean script that will exit if certain error is encountered.
I'm using the following:
when(variable==nil
error("The data is unavailable further simulation has been canceled")
exit
)
That is just a segment of the code and it includes an exit statement at the end of the ocean file. Although I have several of those verifications the error message is correctly seen in the terminal although the program is not ending at that moment.
I'm running and debugging the ocean script by doing:
ocean < file.ocn
And then looking at the messages in the terminal window. I don't know what I'm doing wrong.
Thanks in advance for your help,
Fernando