PDA

View Full Version : throw an error



NewsArchive
06-22-2011, 12:24 PM
Hi Friedrich,

I want to throw an error at compile time. I tried

#halt (1)

This stops the compile process, but does not report an error to the
caller (final builder).

What else can I do?

Thanks for your answer.

Markus

NewsArchive
06-22-2011, 12:25 PM
#msgbox ?

Jane Fleming

NewsArchive
06-22-2011, 12:25 PM
For Final Builder??? It runs and compiles my projects as a service...

Markus Zander

NewsArchive
06-22-2011, 12:25 PM
>
> For Final Builder??? It runs and compiles my projects as a service...
>

Bug in Final Builder?

Friedrich

NewsArchive
06-22-2011, 12:26 PM
Hi Markus,

> I want to throw an error at compile time. I tried
>
> #halt (1)
>
> This stops the compile process, but does not report an error to the
> caller (final builder).
>
> What else can I do?

Yes, the #halt compiler directive sets the error level.

See attached screenshots. The "test1.sb7" project uses #halt(123) to stop
the compilation process and to return 123 as error code. This code is
received from the calling application (in this case a simple SetupBuilder
app that calls the command line compiler).

Does this help?

Friedrich