Fix importer error handling.

This commit is contained in:
Damiano Galassi committed 2017-11-27 09:22:08 +01:00
1 parent 39993bec46
commit b0478ce41e
2 files changed
+7 -3

No files matched your search

+5 -1
View File
@@ -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)
}
}
}