Skip to content

Commit

Permalink
fix(android): revert wraping native error so that app
Browse files Browse the repository at this point in the history
can do it
  • Loading branch information
farfromrefug committed Apr 9, 2024
1 parent ba7978f commit b23b7ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/https/request.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,15 +623,13 @@ export function createRequest(opts: HttpsRequestOptions, useLegacy: boolean = tr
});
}
} catch (error) {
console.error(error);
delete runningClients[tag];
reject(wrapJavaException(error));
reject(error);
}
},
onFailure(task, error) {
console.error(error);
delete runningClients[tag];
reject(wrapJavaException(error));
reject(error);
}
})
);
Expand Down

0 comments on commit b23b7ca

Please sign in to comment.