mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-31 14:43:09 +02:00
catch intentional error in logger demo
This commit is contained in:
@@ -109,7 +109,11 @@ class CustomLoggerViewController: UIViewController, CoreStoreLogger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case .Some(1):
|
case .Some(1):
|
||||||
try! self.dataStack.addSQLiteStoreAndWait(fileName: "emptyStore.sqlite", configuration: "invalidStore")
|
do {
|
||||||
|
|
||||||
|
try self.dataStack.addSQLiteStoreAndWait(fileName: "emptyStore.sqlite", configuration: "invalidStore")
|
||||||
|
}
|
||||||
|
catch _ { }
|
||||||
|
|
||||||
case .Some(2):
|
case .Some(2):
|
||||||
self.dataStack.beginAsynchronous { (transaction) -> Void in
|
self.dataStack.beginAsynchronous { (transaction) -> Void in
|
||||||
|
|||||||
Reference in New Issue
Block a user