diff --git a/src/wizard/utils.jl b/src/wizard/utils.jl index 5c07d6c4b..1307eb4eb 100644 --- a/src/wizard/utils.jl +++ b/src/wizard/utils.jl @@ -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