Improve logging of failed commands

This commit is contained in:
Nindi Gill 2023-05-24 17:19:48 +10:00
parent 649ed12358
commit 02a74e59e3
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
17 changed files with 44 additions and 36 deletions

View file

@ -61,7 +61,7 @@ struct HelperToolCommandRunner {
ShellExecutor.shared.terminate()
return HelperToolCommandResponse(terminationStatus: 0, standardOutput: nil, standardError: nil)
default:
let response: (terminationStatus: Int32, standardOutput: String?, standardError: String?) = try ShellExecutor.shared.execute(request.arguments, environment: request.environment)
let response: HelperToolCommandResponse = try ShellExecutor.shared.execute(request.arguments, environment: request.environment)
return HelperToolCommandResponse(terminationStatus: response.terminationStatus, standardOutput: response.standardOutput, standardError: response.standardError)
}
}