Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make Watchman.request return a result
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: D28169687 fbshipit-source-id: 668e6a43460f4eba3afdbaea398d62fc20276289
- Loading branch information
1 parent
56868d9
commit 24753dd
Showing
1 changed file
with
27 additions
and
11 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