Skip to content

Commit

Permalink
Fix frozen web repl for single-token expressions [fixes #416].
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Apr 11, 2012
1 parent 6576513 commit 0399155
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/webserver/julia_web_base.jl
Expand Up @@ -126,14 +126,15 @@ function __socket_callback(fd)
continue
end
__all_nothing = false
__expr_multitoken = isa(__expr, Expr)

# stop now if there was a parsing error
if __expr.head == :error
if __expr_multitoken && __expr.head == :error
return __write_message(__Message(__MSG_OUTPUT_PARSE_ERROR, {__expr.args[1]}))
end

# if the expression was incomplete, just keep going
if __expr.head == :continue
if __expr_multitoken && __expr.head == :continue
continue
end

Expand Down

0 comments on commit 0399155

Please sign in to comment.