mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-30 20:23:59 +01:00
catch intentional error in logger demo
This commit is contained in:
1 parent
f85eb2e057
commit
edc51de030
1 file changed
+5
-1
@@ -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