Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Missing macro error recovery (https://www.kinook.com/Forum/showthread.php?t=419)

pjaquiery 04-27-2004 05:28 PM

Missing macro error recovery
 
Two issues:

if a macro is referenced in the Project Steps, but has not been defined, build fail processing happens but the FAILSTEP_NAME and FAILSTEP_OUTPUT macros are blank.

if a macro is referenced in the Failure Steps, but has not been defined, the build stops and the failure processing is not completed.

The big problem is in the failure step processing because often that is reporting the failure (generally by email for us). A fix would be for VBP to treat all undefined macros in failure step processing as defined but blank. That would generally allow the processing to complete at least.

kinook 04-28-2004 08:32 AM

Quote:

if a macro is referenced in the Project Steps, but has not been defined, build fail processing happens but the FAILSTEP_NAME and FAILSTEP_OUTPUT macros are blank.
Good catch. Apparently not too common since it looks like it's always worked this way and you're the first to notice. We'll add it to the fix list.

Quote:

if a macro is referenced in the Failure Steps, but has not been defined, the build stops and the failure processing is not completed...A fix would be for VBP to treat all undefined macros in failure step processing as defined but blank.
Even that wouldn't help much if the To, Server, or other critical fields of the Send Mail action had the undefined macros. You could put the Send Mail step first (or mark all prior failure steps to ignore failure) and hard-code the Send Mail step properties to known good values. Of course, even that can't guard against things like the mail server being down or unavailable. As a backup you could do a NET SEND if the Send Mail step fails.

pjaquiery 04-28-2004 03:38 PM

Quote:

Originally posted by kinook
Apparently not too common since it looks like it's always worked this way and you're the first to notice.
I've noticed it before from time to time but it didn't bug me enough to do anything.

Quote:

Even that wouldn't help much if the To, Server, or other critical fields of the Send Mail action had the undefined macros. ...
Yes to all of that, but the chances are better if a blank is used, particuarly as I tend to copy mail steps and just change the message.


All times are GMT -5. The time now is 04:21 PM.


Copyright © 1999-2023 Kinook Software, Inc.