Skip to content

Commit e51e5cd

Browse files
mcgintymoxie0
authored andcommitted
fail faster in FileNotFoundException case
Fixes signalapp#3053 Closes signalapp#4499 // FREEBIE
1 parent 5b1e5b1 commit e51e5cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/org/thoughtcrime/securesms/jobs/PushMediaSendJob.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.whispersystems.textsecure.api.push.exceptions.UnregisteredUserException;
2626
import org.whispersystems.textsecure.api.util.InvalidNumberException;
2727

28+
import java.io.FileNotFoundException;
2829
import java.io.IOException;
2930
import java.util.List;
3031

@@ -127,6 +128,9 @@ private void deliver(MasterSecret masterSecret, OutgoingMediaMessage message)
127128
} catch (InvalidNumberException | UnregisteredUserException e) {
128129
Log.w(TAG, e);
129130
throw new InsecureFallbackApprovalException(e);
131+
} catch (FileNotFoundException e) {
132+
Log.w(TAG, e);
133+
throw new UndeliverableMessageException(e);
130134
} catch (IOException e) {
131135
Log.w(TAG, e);
132136
throw new RetryLaterException(e);

0 commit comments

Comments
 (0)