Fix importer error handling.
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -94,7 +94,11 @@ extension SBDocument: ChapterSearchControllerDelegate, MetadataSearchControllerD
|
||||
}
|
||||
}
|
||||
catch {
|
||||
presentError(error)
|
||||
if let windowForSheet = windowForSheet {
|
||||
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
|
||||
} else {
|
||||
presentError(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user