Skip to content

Commit

Permalink
[Fix] #256 - error 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Apr 28, 2024
1 parent fc91f4b commit f12c064
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iOS-NOTTODO/iOS-NOTTODO/Network/Base/APIError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public enum APIError: Error, Equatable {
enum APIError: Error, Equatable {
case network(statusCode: Int, response: ErrorResponse)
case unknown
case tokenReissuanceFailed
Expand Down
7 changes: 4 additions & 3 deletions iOS-NOTTODO/iOS-NOTTODO/Network/Base/ErrorReponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

import Foundation

public struct ErrorResponse: Decodable, Equatable {
public let statusCode: String
public let responseMessage: String
struct ErrorResponse: Decodable, Equatable {
let status: Int
let success: Bool
let message: String
}

0 comments on commit f12c064

Please sign in to comment.