              using the information we obtained earlier.
              */
             spcData = try resourceLoadingRequest.streamingContentKeyRequestData(forApp: applicationCertificate, contentIdentifier: assetIDData, options: resourceLoadingRequestOptions)
-        } catch let error as NSError {
-            print("Error obtaining key request data: \(error.domain) reason: \(String(describing: error.localizedFailureReason))")
+        } catch {
+            let error = NSError(domain: AssetLoaderDelegate.errorDomain, code: -5, userInfo: nil)
             resourceLoadingRequest.finishLoading(with: error)
             return
         }

        else {
            guard let dataRequest = resourceLoadingRequest.dataRequest else {
                print("no data is being requested in loadingRequest")
                let error = NSError(domain: AssetLoaderDelegate.errorDomain, code: -6, userInfo: nil)
                resourceLoadingRequest.finishLoading(with: error)
                return
            }

    }
    
    public func deletePersistedConentKeyForAsset() {
        
        clearCurrentTimeForContentKey()
        
        guard let filePathURLForPersistedContentKey = filePathURLForPersistedContentKey() else {
            return
        }
