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 74afd06 commit 359fe7d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
### Installation with CocoaPods

```ruby
pod 'VideoEditor', '1.0'
pod 'VideoEditor', '1.1'
```

### Build Project
Expand Down
2 changes: 1 addition & 1 deletion VideoEditor.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'VideoEditor'
s.version = '1.0'
s.version = '1.1'
s.summary = 'VideoEditor facilitates manipulate Audios volume, merge multiple audios to video'
s.description = <<-DESC
VideoEditor written on Swift 5.0 by levantAJ
Expand Down
4 changes: 3 additions & 1 deletion VideoEditor/VideoEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@ public extension VideoEditor {

public enum VideoEditorError: Int, Error {
case notFoundAudioInVideo = 10000
}

var localizedDescription: String {
extension VideoEditorError: LocalizedError {
public var errorDescription: String? {
switch self {
case .notFoundAudioInVideo:
return NSLocalizedString("Cannot found audio in video!", comment: "")
Expand Down
10 changes: 0 additions & 10 deletions VideoEditor/VideoExporter.swift

This file was deleted.

0 comments on commit 359fe7d

Please sign in to comment.