Detect build failure reasons.