fastlane/swift/SocketClient.swift in fastlane_hotfix-2.165.1 vs fastlane/swift/SocketClient.swift in fastlane_hotfix-2.187.0
- old
+ new
@@ -1,7 +1,7 @@
// SocketClient.swift
-// Copyright (c) 2020 FastlaneTools
+// Copyright (c) 2021 FastlaneTools
//
// ** NOTE **
// This file is provided by fastlane and WILL be overwritten in future updates
// If you want to add extra functionality to this project, create a new file in a
@@ -27,11 +27,11 @@
case ready
case closed
}
static let connectTimeoutSeconds = 2
- static let defaultCommandTimeoutSeconds = 10_800 // 3 hours
+ static let defaultCommandTimeoutSeconds = 10800 // 3 hours
static let doneToken = "done" // TODO: remove these
static let cancelToken = "cancelFastlaneRun"
fileprivate var inputStream: InputStream!
fileprivate var outputStream: OutputStream!
@@ -300,10 +300,11 @@
socketDelegate?.commandExecuted(serverResponse: .clientInitiatedCancelAcknowledged) {
$0.writeSemaphore.signal()
self.closeSession(sendAbort: false)
}
- case let .failure(failureInformation):
+ case let .failure(failureInformation, failureClass, failureMessage):
+ LaneFile.fastfileInstance?.onError(currentLane: ArgumentProcessor(args: CommandLine.arguments).currentLane, errorInfo: failureInformation.joined(), errorClass: failureClass, errorMessage: failureMessage)
socketDelegate?.commandExecuted(serverResponse: .serverError) {
$0.writeSemaphore.signal()
self.handleFailure(message: failureInformation)
}