@@ -155,30 +155,41 @@ do {
155
155
// FIXME: The following check should be at the end of Driver.init, but current
156
156
// usage of the DiagnosticVerifier in tests makes this difficult.
157
157
guard !driver. diagnosticEngine. hasErrors else {
158
+ print ( " DRIVER EXTRA VERBOSE HAD ERRORS " )
158
159
throw Driver . ErrorDiagnostics. emitted
159
160
}
160
161
162
+ print ( " DRIVER EXTRA VERBOSE STARTING PLANNING " )
161
163
let jobs = try driver. planBuild ( )
164
+ print ( " DRIVER EXTRA VERBOSE FINISHED PLANNING " )
162
165
163
166
// Planning may result in further errors emitted
164
167
// due to dependency scanning failures.
165
168
guard !driver. diagnosticEngine. hasErrors else {
169
+ print ( " DRIVER EXTRA VERBOSE HAD ERRORS " )
166
170
throw Driver . ErrorDiagnostics. emitted
167
171
}
168
172
173
+ print ( " DRIVER EXTRA VERBOSE RUNNING JOBS " )
169
174
try driver. run ( jobs: jobs)
175
+ print ( " DRIVER EXTRA VERBOSE FINISHED JOBS " )
170
176
171
177
if driver. diagnosticEngine. hasErrors {
178
+ print ( " DRIVER EXTRA VERBOSE HAD ERRORS " )
172
179
exit ( getExitCode ( EXIT_FAILURE) )
173
180
}
174
181
182
+ print ( " DRIVER EXTRA VERBOSE SUCCESS " )
175
183
exit ( getExitCode ( 0 ) )
176
184
} catch let diagnosticData as DiagnosticData {
185
+ print ( " DRIVER EXTRA VERBOSE IN CATCH FOR DIAGNOSTIC EMISSION " )
177
186
diagnosticsEngine. emit ( . error( diagnosticData) )
178
187
exit ( getExitCode ( EXIT_FAILURE) )
179
188
} catch Driver . ErrorDiagnostics . emitted {
189
+ print ( " DRIVER EXTRA VERBOSE IN CATCH FOR ALREADY EMITTED DIAGNOSTICS " )
180
190
exit ( getExitCode ( EXIT_FAILURE) )
181
191
} catch {
192
+ print ( " DRIVER EXTRA VERBOSE IN CATCH FOR OTHER ERROR " )
182
193
print ( " error: \( error) " )
183
194
exit ( getExitCode ( EXIT_FAILURE) )
184
195
}
0 commit comments