[Cook] Aborting a cook invocation
Jerry Pendergraft
jerry at endocardial.com
Thu Jun 12 04:56:37 EST 2003
Well it is supposed to ;^) Peter?
--
Jerry Pendergraft jerry.pendergraft at endocardial.com
Endocardial Solutions voice: 651-523-6935
1350 Energy Lane, Suite 110 fax: 651-644-7897
St Paul, MN 55108-5254 mobile: 651-491-0163
On Wed, 11 Jun 2003, Jody Hagins wrote:
> 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
>
>
>
>
>
>
More information about the Cook-users
mailing list