             try self.checkSavingSafetyForConverting(content: content, encoding: encoding)
             
         } catch let error {
-            self.recoverBlock = completionHandler
-            self.presentError(error,
-                              modalFor: self.windowForSheet!,
-                              delegate: self,
-                              didPresent: #selector(didPresentErrorWithRecovery(didRecover:block:)),
-                              contextInfo: nil)
+            self.presentErrorAsSheet(error, recoveryHandler: completionHandler)
             return
         }
         

                do {
                    try strongSelf.revert(toContentsOf: fileURL, ofType: fileType)
                } catch let error {
                    if let window = self?.windowForSheet {
                        strongSelf.presentError(error, modalFor: window, delegate: nil, didPresent: nil, contextInfo: nil)
                    } else {
                        strongSelf.presentError(error)
                    }
                }
            }
        }

            
        } catch let error {
            NSBeep()
            self.presentErrorAsSheet(error)
        }
    }
    
