[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Noob question -- On error, exit function and terminate script
- From: Xavier Wang <weasley.wx@...>
- Date: Sat, 25 Jun 2011 21:28:42 +0800
maybe you can try os.exit()
在 2011-6-25 晚上9:23，"marbux" <email@example.com
> Hi, all,
> I've spent a couple of hours now looking for the answer without
> success. Is there a simple method to terminate a script upon an error
> condition that occurs within a function, E.g.,
> function foo(bar)
> if bar == ""
> Appreciate any guidance here.
> Best regards,