Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catch exceptions when reading watchman responses
Summary: this stack converts all of the functions in watchman.ml to return results instead of throwing exceptions, so that we can ensure we handle all the error cases. during the transition, we will call `raise_error` to maintain exception behavior, but eventually thread the `result` further and further up and eliminate `try/with`'s. Reviewed By: nmote Differential Revision: D28169686 fbshipit-source-id: f647ca5c2daac7ec61af1163d3d66e8e3e280a03
- Loading branch information
1 parent
9e2318a
commit ceb6eb2
Showing
1 changed file
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters