From 520a0fb2edb5ee8d94b07f866e853bcce57f4ebc Mon Sep 17 00:00:00 2001 From: Scott Talbot Date: Sun, 19 Apr 2020 14:54:13 +1000 Subject: [PATCH] Detect failure to write a cassette --- Sources/DVR/Session.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/DVR/Session.swift b/Sources/DVR/Session.swift index 7811554..0e6d632 100644 --- a/Sources/DVR/Session.swift +++ b/Sources/DVR/Session.swift @@ -215,7 +215,7 @@ open class Session: URLSession { string = string.appending("\n") as NSString if let data = string.data(using: String.Encoding.utf8.rawValue) { - try? data.write(to: cassetteURL, options: [.atomic]) + try data.write(to: cassetteURL, options: [.atomic]) return }