Skip to content

Commit

Permalink
hackificator: Print a parse error message instead of just saying "Par…
Browse files Browse the repository at this point in the history
…se error"

Summary: Closes #7325

Reviewed By: dlreeves

Differential Revision: D3842412

Pulled By: aorenste

fbshipit-source-id: f3222f5f79f8e23dfc006c1ee10633fd04251362
  • Loading branch information
jesseschalken authored and Hhvm Bot committed Sep 12, 2016
1 parent 302664f commit e487a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hphp/hack/tools/hackificator/hackificator.ml
Expand Up @@ -393,8 +393,8 @@ let hackify ~upgrade header file =
| _ ->
pr2 (spf "no open tag, skipping %s" file);
None
with Parse_php.Parse_error _ ->
pr2 (spf "Parse error: %s" file);
with Parse_php.Parse_error info ->
pr2 (spf "Parse error: %s" (PI.error_message_info info));
None


Expand Down

0 comments on commit e487a80

Please sign in to comment.