Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dagronf committed Apr 7, 2024
1 parent 5ddc8e7 commit 5684f3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension Data {
init(fileURL: URL, maxByteCount: Int) throws {

guard let stream = InputStream(url: fileURL) else {
fatalError()
throw CocoaError(.fileNoSuchFile)
}

// Allocate a c-style buffer to write into
Expand Down

0 comments on commit 5684f3a

Please sign in to comment.