This version of Unity is unsupported.

BuildSummary.totalErrors

public int totalErrors;

Description

The total number of errors and exceptions recorded during the build process.