Skip to content

Commit cf7116d

Browse files
committed
feat: Fix console log format
1 parent bf06e4b commit cf7116d

File tree

2 files changed

+2
-47
lines changed

2 files changed

+2
-47
lines changed

Package.resolved

Lines changed: 0 additions & 42 deletions
This file was deleted.

Sources/GoodNetworking/Extensions/DecodingErrorFormatter.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ internal extension DecodingError {
1515
.valueNotFound(_, let context),
1616
.keyNotFound(_, let context),
1717
.dataCorrupted(let context):
18-
"""
19-
⛔️ Decoding failed - \(context.debugDescription)
20-
Coding path: \(context.codingPath.prettyPrinted)
21-
"""
18+
return "⛔️ Error while decoding \(context.codingPath.prettyPrinted) - \(context.debugDescription)"
2219

2320
@unknown default:
24-
"⛔️ Decoding failed - unknown error"
21+
return "⛔️ Decoding failed - unknown error"
2522
}
2623
}
2724

0 commit comments

Comments
 (0)