Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make Watchman.open_connection 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: D28169688 fbshipit-source-id: cc30318212679a9880f566e3f70d894c3b57983b
- Loading branch information
1 parent
0836abf
commit 56868d9
Showing
1 changed file
with
53 additions
and
43 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