Skip to content

Commit

Permalink
Update src/android/Capture.java
Browse files Browse the repository at this point in the history
Co-authored-by: エリス <[email protected]>
  • Loading branch information
breautek and erisu authored Dec 28, 2024
1 parent 3c046cb commit b7f0497
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/android/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,7 @@ public void onAudioActivityResult(Request req, Intent intent) {
while ((bytesRead = input.read(buffer)) != -1) {
output.write(buffer, 0, bytesRead);
}
}
catch (FileNotFoundException e) {
} catch (FileNotFoundException e) {
pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: Unable to read input audio: File not found"));
} catch (IOException e) {
pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: Unable to read input audio"));
Expand Down

0 comments on commit b7f0497

Please sign in to comment.