Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
levantAJ committed Nov 8, 2020
1 parent f2e1e17 commit 06ebcd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CountrySource.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CountrySource'
s.version = '1.1'
s.version = '1.2'
s.summary = 'CountrySource provides list of all countries in the world.'
s.description = <<-DESC
CountrySource written on Swift 5.0 by levantAJ
Expand Down
4 changes: 3 additions & 1 deletion CountrySource/CountrySource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ public extension CountrySource {

public enum CountrySourceError: Int, Error {
case notFound = 1000
}

var localizedDescription: String {
extension CountrySourceError: LocalizedError {
public var errorDescription: String? {
switch self {
case .notFound:
return NSLocalizedString("Not found", comment: "")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Provides list of all countries in the world (name, code, phone code) & determine
### Installation with CocoaPods

```ruby
pod 'CountrySource', '1.1'
pod 'CountrySource', '1.2'
```

### Build Project
Expand Down

0 comments on commit 06ebcd6

Please sign in to comment.