Skip to content

Commit f626340

Browse files
author
“Akshay
committed
[MOB-9192] - Error mapping on Swift SDK
1 parent 14b1774 commit f626340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/RequestSender.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct SendRequestError: Error {
5757
iterableCode = jsonDict[JsonKey.Response.iterableCode] as? String
5858
}
5959

60-
return SendRequestError(reason: "Invalid API Key",
60+
return SendRequestError(reason: networkError.reason,
6161
data: networkError.data,
6262
httpStatusCode: httpStatusCode,
6363
iterableCode: iterableCode,

0 commit comments

Comments
 (0)