     
     
     /// open files via Services
-    @objc func openFile(_ pboard: NSPasteboard, userData: String, error: AutoreleasingUnsafeMutablePointer<NSString?>) {
+    @objc func openFile(_ pboard: NSPasteboard, userData: String, error errorPointer: AutoreleasingUnsafeMutablePointer<NSString?>) {
         
         guard let fileURLs = pboard.readObjects(forClasses: [NSURL.self]) as? [URL] else { return assertionFailure() }
         
         for fileURL in fileURLs {
             NSDocumentController.shared.openDocument(withContentsOf: fileURL, display: true) { (_, _, error) in
                 if let error = error {
+                    errorPointer.pointee = error.localizedDescription as NSString
                     NSApp.presentError(error)
                 }
             }

            document = try NSDocumentController.shared.openUntitledDocumentAndDisplay(false)
            
        } catch {
            NSApp.presentError(error)
            return
        }

    // MARK: Public Methods
    
    /// open new document with string via Services
    @objc func openSelection(_ pboard: NSPasteboard, userData: String, error errorPointer: AutoreleasingUnsafeMutablePointer<NSString?>) {
        
        guard let selection = pboard.string(forType: .string) else { return assertionFailure() }
        
