Page 1 of 1

rc after error message

Posted: Sat Oct 21, 2023 1:05 am
by polluks
Hi!
After "Cannot open codesets.library" you get rc=0 :roll:

Regards,
Stefan

Re: rc after error message

Posted: Sat Oct 21, 2023 9:56 pm
by airsoftsoftwair
Hollywood currently never sets any DOS error code. What do you need this for?

Re: rc after error message

Posted: Sun Oct 22, 2023 3:49 pm
by polluks
For example if you are using a Hollywood app in a shell script...

Re: rc after error message

Posted: Sun Oct 22, 2023 4:06 pm
by plouf
Error() , is any help to what are you trying to do ?

Re: rc after error message

Posted: Mon Oct 23, 2023 11:33 am
by polluks
plouf wrote: Sun Oct 22, 2023 4:06 pm Error() , is any help to what are you trying to do ?
I see, but this workaround is laborious.
A shell or installer script should use
IF ERROR ...

Re: rc after error message

Posted: Sun Oct 29, 2023 5:02 pm
by airsoftsoftwair
polluks wrote: Sun Oct 22, 2023 3:49 pm For example if you are using a Hollywood app in a shell script...
Hmm, yeah, might make sense to add this but then of course the question is if it should also return those codes in case of script runtime errors. Need to make up my mind about this.

Re: rc after error message

Posted: Wed Jul 24, 2024 9:58 pm
by airsoftsoftwair

Code: Select all

- Change: Hollywood sets the return code to 20 now whenever an error has occurred; this allows you to
  react on it when embedding Hollywood in batch scripts

Re: rc after error message

Posted: Sun Nov 16, 2025 6:35 pm
by airsoftsoftwair
Changed this a little, the error code is now user-configurable:

Code: Select all

- New: Added the ERRORCODE console argument/tooltype; this argument allows you to set an error code that
  Hollywood should return in case an error occurs; this allows you to react on certain error codes when
  embedding Hollywood in batch scripts; note that the code set via ERRORCODE will only be returned in case
  a Hollywood error occurs; your script can also return error codes using the End() function