Skip to content

Commit

Permalink
fix: throw EOFError properly (JuliaPackaging#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifer1004 committed Sep 18, 2022
1 parent c3ab910 commit 85ce496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wizard/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function line_prompt(name, msg; ins=stdin, outs=stdout, force_identifier=false,
else
val = strip(read(_getpass(ins), String))
end
if eof(ins)
throw(EOFError())
end
if !isopen(ins)
throw(InterruptException())
end
Expand Down

0 comments on commit 85ce496

Please sign in to comment.