Skip to content

Commit 2c6d010

Browse files
Adding UserFlow.compleWithFail to RN
Summary: Adding method UserFlow.completeWithFail. Reviewed By: swillard13 Differential Revision: D24052851 fbshipit-source-id: 1baa30a2d7dfb9ef4e457a74b66fd24e4ffbf21f
1 parent c4629f7 commit 2c6d010

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

Libraries/Reliability/UserFlow.js

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,32 +93,17 @@ const UserFlow = {
9393
}
9494
},
9595

96-
completeWithUnexpectedFail(
96+
completeWithFail(
9797
flowId: FlowId,
98-
reason: string,
99-
failureLocation: string,
98+
errorName: string,
99+
debugInfo: ?string = null,
100100
): void {
101-
if (global.nativeUserFlowCompleteWithUnexpectedFail) {
102-
global.nativeUserFlowCompleteWithUnexpectedFail(
101+
if (global.nativeUserFlowCompleteWithFail) {
102+
global.nativeUserFlowCompleteWithFail(
103103
flowId.markerId,
104104
flowId.instanceKey,
105-
reason,
106-
failureLocation,
107-
);
108-
}
109-
},
110-
111-
completeWithExpectedFail(
112-
flowId: FlowId,
113-
reason: string,
114-
failureLocation: string,
115-
): void {
116-
if (global.nativeUserFlowCompleteWithExpectedFail) {
117-
global.nativeUserFlowCompleteWithExpectedFail(
118-
flowId.markerId,
119-
flowId.instanceKey,
120-
reason,
121-
failureLocation,
105+
errorName,
106+
debugInfo,
122107
);
123108
}
124109
},

0 commit comments

Comments
 (0)