FBIGNOREDERRORS not incremented

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
  npos = instr(StatusMessage.MessageText, "BUILD FAILED")
  if npos>0 then
    BUILD_FAILED = True
    Action.SendLogMessage("=============== Build failed detected ===============")
  end if
end if

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

 

if BUILD_FAILED then
  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
  FBIGNOREDERRORS = FBIGNOREDERRORS + 1
  ActionResult = False
end if

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

Please let us know how you go.

Regards,

Angus

Hi Angus,

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

It works now as expected.