Minor change
This commit is contained in:
1 parent
85e5be03d1
commit
24c89b3eee
1 file changed
+3
@@ -10,6 +10,9 @@ file_to_stream :: proc(fd: Handle) -> (s: io.Stream) {
|
||||
|
||||
@(private)
|
||||
error_to_io_error :: proc(ferr: Error) -> io.Error {
|
||||
if ferr == nil {
|
||||
return .None;
|
||||
}
|
||||
err, ok := ferr.(io.Error);
|
||||
if !ok {
|
||||
err = .Unknown;
|
||||
|
||||
Reference in new issue
Block a user