Skip to content

Commit

Permalink
Fixed issue where ResultReporter was not used during finishWithError,…
Browse files Browse the repository at this point in the history
… meaning promises would not be rejected as expected
  • Loading branch information
Ed Crampin committed Jan 24, 2018
1 parent 258618b commit 33ceb50
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ protected void finishWithError(String errorMessage) {
Intent data = new Intent();
data.putExtra(AnylineSDKPlugin.EXTRA_ERROR_MESSAGE, errorMessage);
setResult(AnylineSDKPlugin.RESULT_ERROR, data);
ResultReporter.onError(errorMessage);
finish();
}

Expand Down

0 comments on commit 33ceb50

Please sign in to comment.