From 5684f3a1bf2def68632bde9ed61c05335186788b Mon Sep 17 00:00:00 2001 From: Darren Ford Date: Mon, 8 Apr 2024 08:08:27 +1000 Subject: [PATCH] Minor tweak --- Demos/Subtitle Viewer/Subtitle Viewer/Data+extensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demos/Subtitle Viewer/Subtitle Viewer/Data+extensions.swift b/Demos/Subtitle Viewer/Subtitle Viewer/Data+extensions.swift index ae45c58..590f5bf 100644 --- a/Demos/Subtitle Viewer/Subtitle Viewer/Data+extensions.swift +++ b/Demos/Subtitle Viewer/Subtitle Viewer/Data+extensions.swift @@ -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