Skip to content

Commit

Permalink
hotfix/#282 오류수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hooni0918 committed Aug 6, 2024
1 parent 3e748e8 commit 2221323
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions KkuMulKum/Network/Service/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ class AuthService: AuthServiceType {
case .failure(let error):
continuation.resume(throwing: NetworkError.networkError(error))
}
case .failure(let error):
if let response = error.response, response.statusCode == 413 {
completion(.failure(.apiError(code: 413, message: "이미지 사이즈가 너무 큽니다.")))
} else {
completion(.failure(.networkError(error)))
}

}
}
}
Expand Down

0 comments on commit 2221323

Please sign in to comment.