Skip to content

Commit

Permalink
Detect failure to write a cassette
Browse files Browse the repository at this point in the history
  • Loading branch information
cysp committed Apr 19, 2020
1 parent 6d38b09 commit 520a0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/DVR/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 520a0fb

Please sign in to comment.