# Help & Manual 5.3 command line build error codes

**URL:** https://www.finalbuilder.com/forums/t/help-manual-5-3-command-line-build-error-codes/3178
**Category:** Bugs
**Created:** [November 16, 2009, 12:06pm UTC](https://www.finalbuilder.com/forums/t/help-manual-5-3-command-line-build-error-codes/3178 "2009-11-16T12:06:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ollis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@ollis](https://www.finalbuilder.com/forums/u/ollis)
#### Post date: [November 16, 2009, 12:06pm UTC](https://www.finalbuilder.com/forums/t/help-manual-5-3-command-line-build-error-codes/3178/1 "2009-11-16T12:06:52Z")

</div>

Hello,

We're using Help &&nbsp;Manual 5.3 for our documentation needs. In v5.3 [a new command line build tool](http://helpman.it-authoring.com/viewtopic.php?t=8980) was introduced, but that tool uses bit different result codes from previous versions.

Specifically if a project emits a warning now Final Builder Help &&nbsp;Manual action interprets that as a failure in the action, and fails the build.

Would it be possible to get support for the new H&M&nbsp;version result codes?

&nbsp;

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 16, 2009, 10:04am UTC](https://www.finalbuilder.com/forums/t/help-manual-5-3-command-line-build-error-codes/3178/2 "2009-11-16T10:04:35Z")

</div>

Hi   
  
 The current version of FB does support the new exit codes, however we do treat them all as errors. This was based on information provided by Alex (the author) :   
  
 -------------------------------   
 We have introduced two new exit codes in the command line mode.   
  
 0 = no error, no warnings   
 1 = an error occured, compilation could not be finished   
 2 = a serious warning occured, compilation might be finished but the result is not ok (this concerns, for instance, dead links, missing images, etc.)   
 3 = an error occured, compilation could be completed but the resulting help file might not work (missing child projects, failed image conversion, incomplete full-text index, etc.)   
  
 Any non-zero exit code can be treated as an error that needs investigation from the user. Zero is fine.   
 --------------------   
  
 Rather than change the current behavior (which someone may be relying on) I have added an ExitCode property, which you can check in the AfterAction script event :   
  
 if (Action.ExitCode = 2) then   
 ActionResult = True   
 Continue = True   
 end if   
  
 This will allow you to change the behavior of the action as needed.   
  
 I will post here when a build is available with this change.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 17, 2009, 2:27am UTC](https://www.finalbuilder.com/forums/t/help-manual-5-3-command-line-build-error-codes/3178/3 "2009-11-17T02:27:46Z")

</div>

Here’s the new build with the Exitcode property :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/630/FB630\_1804.exe](https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1804.exe)
