Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctdewaters committed Feb 19, 2018
1 parent 6a2ebcc commit 7ab73e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions MemoriesKit/MKAppleMusicManager.swift
Expand Up @@ -36,10 +36,10 @@ public class MKAppleMusicManager {
public func retrieveRecentlyPlayed(withLimit limit: Int = 10, andOffset offset: Int = 0, andCompletion completion: @escaping MKAppleMusicManager.RetrievalCompletionHandler) {
//Ensure we have developer and user tokens.
if MKAuth.developerToken == nil {
fatalError("FATAL ERROR: Developer token not retrieved.")
print("FATAL ERROR: Developer token not retrieved.")
}
if MKAuth.musicUserToken == nil {
fatalError("FATAL ERROR: Music user token not retrieved.")
print("FATAL ERROR: Music user token not retrieved.")
}

//Create the request.
Expand All @@ -66,7 +66,7 @@ public class MKAppleMusicManager {
completion(albumCollections, nil)
}
catch {
fatalError("An error occurred: \(error.localizedDescription)")
print("An error occurred: \(error.localizedDescription)")
}
}.resume()
}
Expand All @@ -75,10 +75,10 @@ public class MKAppleMusicManager {
public func retrieveHeavyRotation(withLimit limit: Int = 10, andOffset offset: Int = 0, andCompletion completion: @escaping MKAppleMusicManager.RetrievalCompletionHandler) {
//Ensure we have developer and user tokens.
if MKAuth.developerToken == nil {
fatalError("FATAL ERROR: Developer token not retrieved.")
print("FATAL ERROR: Developer token not retrieved.")
}
if MKAuth.musicUserToken == nil {
fatalError("FATAL ERROR: Music user token not retrieved.")
print("FATAL ERROR: Music user token not retrieved.")
}

//Create the request.
Expand All @@ -105,7 +105,7 @@ public class MKAppleMusicManager {
completion(albumCollections, nil)
}
catch {
fatalError("An error occurred: \(error.localizedDescription)")
print("An error occurred: \(error.localizedDescription)")
}
}.resume()
}
Expand Down

0 comments on commit 7ab73e5

Please sign in to comment.