Skip to content

Commit

Permalink
Merge pull request #5 from AyanTech/v1.0.2
Browse files Browse the repository at this point in the history
V1.0.2
  • Loading branch information
sepbehroozi authored Aug 11, 2018
2 parents 1d2311b + 3c663e2 commit 594eea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AyanTechNetworkingLibrary.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "AyanTechNetworkingLibrary"
spec.version = "1.0.1"
spec.version = "1.0.2"
spec.summary = "Networking library for comunicate AyanTech web services"
spec.homepage = "https://github.com/AyanTech/AyanTechNetworkingLibrary-iOS"
spec.license = { type: 'MIT', file: 'LICENSE' }
Expand Down
3 changes: 2 additions & 1 deletion AyanTechNetworkingLibrary/Model/ATError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ATError: NSObject {
public var type: ATErrorType?
public var name: String!

class var generalError: ATError {
public class var generalError: ATError {
let result = ATError()
result.code = -1
result.type = .general
Expand All @@ -27,6 +27,7 @@ public class ATError: NSObject {
result.code = error.errorCode
result.type = ATErrorType.from(error: error)
result.name = error.code.name
result.persianDescription = result.type?.persianDescription ?? PersianStrings.generalNetworkError.rawValue
}
return result
}
Expand Down

0 comments on commit 594eea8

Please sign in to comment.