# FBIGNOREDERRORS not incremented

**URL:** https://www.finalbuilder.com/forums/t/fbignorederrors-not-incremented/595
**Category:** Discussion
**Created:** [October 1, 2007, 11:50am UTC](https://www.finalbuilder.com/forums/t/fbignorederrors-not-incremented/595 "2007-10-01T11:50:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 1, 2007, 11:50am UTC](https://www.finalbuilder.com/forums/t/fbignorederrors-not-incremented/595/1 "2007-10-01T11:50:40Z")

</div>

Hello.

In a build script using FB 4.20.320 we have a CMD action where we test in the OnStatusMessage event if something failed.

if (len(StatusMessage.MessageText)\>0) then  
&nbsp; npos = instr(StatusMessage.MessageText, "BUILD FAILED")  
&nbsp; if npos\>0 then  
&nbsp;&nbsp;&nbsp; BUILD\_FAILED = True  
&nbsp;&nbsp;&nbsp; Action.SendLogMessage("=============== Build failed detected ===============")  
&nbsp; end if  
end if

In the AfterAction event we let the action failed if an error occurs.

&nbsp;

if BUILD\_FAILED then  
&nbsp; ActionResult = False  
end if

In the build log file the action is marked as "Error Ignored" but an if action later in the script which checked for FBIGNOREDERRORS\>0 would be skipped, because FBIGNOREDERRORS is 0 at this time.

I have solved this for me with an incementation of FBIGNOREDERRORS in the AfterAction event, but it should be handled by FB.

if BUILD\_FAILED then  
&nbsp; FBIGNOREDERRORS = FBIGNOREDERRORS + 1  
&nbsp; ActionResult = False  
end if

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [October 2, 2007, 8:37am UTC](https://www.finalbuilder.com/forums/t/fbignorederrors-not-incremented/595/2 "2007-10-02T08:37:20Z")

</div>

Hi Michael,   
  
 Thanks for bringing this to our attention. We now have an FB 4 build with a fix:   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/420/FB420\_321.exe](https://www.finalbuilder.com/downloads/finalbuilder/420/FB420_321.exe)   
  
 Please let us know how you go.   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 17, 2007, 6:05am UTC](https://www.finalbuilder.com/forums/t/fbignorederrors-not-incremented/595/3 "2007-10-17T06:05:16Z")

</div>

Hi Angus,

I have just tried the new version with a short test script.

It works now as expected.
