Skip to content

Commit

Permalink
Use IOError instead of UVError
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 12, 2018
1 parent 93b06c8 commit 8eb50a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/InteractiveCodeSearch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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+")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8eb50a7

Please sign in to comment.