rc after error message

Report any Hollywood bugs here
Post Reply
polluks
Posts: 8
Joined: Mon Jan 24, 2022 11:18 pm
Contact:

rc after error message

Post by polluks »

Hi!
After "Cannot open codesets.library" you get rc=0 :roll:

Regards,
Stefan
MorphOS
OS X
User avatar
airsoftsoftwair
Posts: 5450
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: rc after error message

Post by airsoftsoftwair »

Hollywood currently never sets any DOS error code. What do you need this for?
polluks
Posts: 8
Joined: Mon Jan 24, 2022 11:18 pm
Contact:

Re: rc after error message

Post by polluks »

For example if you are using a Hollywood app in a shell script...
MorphOS
OS X
plouf
Posts: 473
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: rc after error message

Post by plouf »

Error() , is any help to what are you trying to do ?
Christos
polluks
Posts: 8
Joined: Mon Jan 24, 2022 11:18 pm
Contact:

Re: rc after error message

Post 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 ...
MorphOS
OS X
User avatar
airsoftsoftwair
Posts: 5450
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: rc after error message

Post 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.
Post Reply