[Cook] Aborting a cook invocation
Jody Hagins
jody at atdesk.com
Thu Jun 12 04:47:57 EST 2003
On Wed, 11 Jun 2003 13:03:08 -0500 (CDT)
Jerry Pendergraft <jerry at endocardial.com> wrote:
> try
>
> if [not [defined variable_y]] then
> {
> fail "variable_y is not defined!";
> }
Thanks again, Jerry!
However, this does not exit cook. Instead, it prints the error message,
then continues processing...
shandalle:jody> cat -n a.a
1
2 if [not [defined variable_1]] then
3 {
4 fail "variable_1 not defined!!!";
5 }
6
7 variable_2 = Foo;
8
shandalle:jody> cook -book a.a
/* a.list, /home/jody/junk/cookplay, Wed Jun 11 14:47 2003 */
cook: variable_1 not defined!!!
cook: a.a: 7: statement failed
cook: a.a: found 1 fatal error
--
Jody Hagins
Alexander Graham Bell is alive and well in New York, and still waiting
for a dial tone.
More information about the Cook-users
mailing list