Skip to content

Commit

Permalink
Make failure more production friendly
Browse files Browse the repository at this point in the history
Reviewed By: ericlippert

Differential Revision: D6189346

fbshipit-source-id: e5562df165845c424df6a76a2ce1c18634d42b6e
  • Loading branch information
Maxim Sokolov authored and hhvm-bot committed Oct 31, 2017
1 parent 03fb4e6 commit bccc51d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hphp/hack/src/parser/full_fidelity_lexer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1404,10 +1404,8 @@ let scan_assert_progress tokenizer lexer =
(Token.kind token) = TokenKind.EndOfFile) then
(lexer, token)
else begin
let message = Printf.sprintf
"failed to make progress at %d\n" (offset lexer) in
print_endline message;
assert false
Printf.kprintf failwith
"failed to make progress at %d\n" (offset lexer)
end

let scan_next_token as_name scanner lexer =
Expand Down

0 comments on commit bccc51d

Please sign in to comment.