Page MenuHomeFeedback Tracker

Addon Builder does not output the correct exit code when it fails
New, WishlistPublic

Description

If Addon Builder is run from the command line and it fails to build the addon, it will not correctly output a non-zero error level.

In a batch environment, this makes it difficult to determine if a particular build has failed without scraping the output from Addon Builder. {F24050}

Details

Legacy ID
2523301639
Severity
None
Resolution
Open
Reproducibility
Always
Category
Modding
Steps To Reproduce
  1. Download the attached sample project.
  2. Extract and copy broken_project to P:\broken_project
  3. Run the following:

AddonBuilder.exe P:\broken_project P: -project=P:

  1. After the build fails, run

echo %errorlevel%

Output is 0. Expected output is 1 or nonzero.

Additional Information

Sample run:

P:\>AddonBuilder.exe P:\broken_project P: -project=P:

2014-06-06 12:13:14,539 [INFO] - ===============================================

2014-06-06 12:13:14,540 [INFO] - WELCOME TO ADDON BUILDER

2014-06-06 12:13:14,540 [INFO] - ===============================================

Setting breakpad minidump AppID = 233800
Steam_SetMinidumpSteamID: Caching Steam ID: 76561197994125457 [API loaded no]
2014-06-06 12:13:14,701 [INFO] - Builder starting...
2014-06-06 12:13:14,703 [INFO] - Converting configs ...
2014-06-06 12:13:14,703 [INFO] - Converting cfg "P:\broken_project\config.cpp"
2014-06-06 12:13:14,740 [INFO] - [StandardOutput]=
2014-06-06 12:13:14,740 [ERROR] - [StandardError]=Include file P:\broken_project
\doesnt_exist.hpp not found.
Error reading binary file 'P:\broken_project\config.cpp'

2014-06-06 12:13:14,741 [ERROR] - CfgConvert returned error. Canceling... [resul
t]=1
2014-06-06 12:13:14,741 [INFO] - Build failed

P:\>echo %errorlevel%
0

Event Timeline

Taosenai edited Steps To Reproduce. (Show Details)Jun 6 2014, 6:15 PM
Taosenai edited Additional Information. (Show Details)
Taosenai set Category to Modding.
Taosenai set Reproducibility to Always.
Taosenai set Severity to None.
Taosenai set Resolution to Open.
Taosenai set Legacy ID to 2523301639.May 7 2016, 6:43 PM
Bohemia added a subscriber: AD2001.Jun 6 2014, 6:15 PM