Skip to content

Commit

Permalink
Improve error
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Jul 17, 2024
1 parent e316107 commit eb9e79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Networking/Networking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public struct ErrorResponse: Decodable {
messages.append(message)
}
if let errors = errors {
for (field, messagesArray) in errors {
for (_, messagesArray) in errors {
let combinedFieldMessages = messagesArray.joined(separator: ", ")
messages.append("\(field): \(combinedFieldMessages)")
messages.append(combinedFieldMessages)
}
}
return messages.joined(separator: "; ")
Expand Down

0 comments on commit eb9e79a

Please sign in to comment.