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