From 8eb50a7ef3594600931a34c7fa355ada928a64c4 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sat, 11 Aug 2018 20:28:03 -0700 Subject: [PATCH] Use IOError instead of UVError --- src/InteractiveCodeSearch.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/InteractiveCodeSearch.jl b/src/InteractiveCodeSearch.jl index 4514208..d87777b 100644 --- a/src/InteractiveCodeSearch.jl +++ b/src/InteractiveCodeSearch.jl @@ -6,6 +6,7 @@ export @search, @searchmethods using Base @static if VERSION < v"0.7-" + const IOError = Base.UVError const Nothing = Void const findall = find const occursin = ismatch @@ -21,6 +22,7 @@ using Base using Base: gen_call_with_extracted_types else import Pkg + using Base: IOError using InteractiveUtils: edit, gen_call_with_extracted_types, methodswith function _readandwrite(cmds) processes = open(cmds, "r+") @@ -120,7 +122,7 @@ function read_stdout(cmd, input) try write(stdin, input) catch err - if ! (err isa Base.UVError) + if ! (err isa IOError) rethrow() end finally