Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 7, 2021. It is now read-only.
/AvenuePublic archive

Commitcad7c99

Browse files
committed
Better error messages
1 parent88db0a7 commitcad7c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Avenue/NetworkError.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension NetworkError: LocalizedError {
3737
returnNSLocalizedString("Request failed", comment:"")
3838

3939
case.urlError(let urlError):
40-
return urlError.localizedDescription
40+
return(urlErrorasNSError).localizedDescription
4141

4242
case.other(let error):
4343
return(errorasNSError).localizedDescription
@@ -56,7 +56,7 @@ extension NetworkError: LocalizedError {
5656
returnNSLocalizedString("Empty response (no data)", comment:"")
5757

5858
case.urlError(let urlError):
59-
return"\(urlError.errorCode):\( urlError.userInfo)"
59+
return(urlErrorasNSError).localizedFailureReason
6060

6161
case.other(let error):
6262
return(errorasNSError).localizedFailureReason

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp