Skip to content

Commit

Permalink
1.37.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Aug 18, 2024
1 parent 706e4f0 commit 682c7b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftAPIClient/APIClientCaller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ public extension APIClient {
} catch {
try withConfigs { configs in
let fileIDLine = configs.fileIDLine ?? FileIDLine(fileID: fileID, line: line)
let configs = configs.with(\.fileIDLine, fileIDLine)
if !configs._errorLoggingComponents.isEmpty {
let message = configs._errorLoggingComponents.errorMessage(
uuid: uuid,
Expand Down
1 change: 1 addition & 0 deletions Sources/SwiftAPIClient/Clients/HTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPRespons
if configs.reportMetrics {
updateHTTPMetrics(for: request, status: nil, duration: duration, successful: false)
}
try configs.errorHandler(error, configs, APIErrorContext(request: request, fileIDLine: configs.fileIDLine ?? FileIDLine()))
throw error
}
let duration = Date().timeIntervalSince(start)
Expand Down

0 comments on commit 682c7b1

Please sign in to comment.