diff --git a/SessionShareExtension/ShareVC.swift b/SessionShareExtension/ShareVC.swift index ae65a0a4a..6c62e83e7 100644 --- a/SessionShareExtension/ShareVC.swift +++ b/SessionShareExtension/ShareVC.swift @@ -227,7 +227,11 @@ final class ShareVC : UINavigationController, ShareViewDelegate, AppModeManagerD } func shareViewFailed(error: Error) { - extensionContext!.cancelRequest(withError: error) + let alert = UIAlertController(title: "Session", message: error.localizedDescription, preferredStyle: .alert) + alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: { _ in + self.extensionContext!.cancelRequest(withError: error) + })) + present(alert, animated: true, completion: nil) } // MARK: Attachment Prep