Эх сурвалжийг харах

Merge pull request #87 from abunur/master

error handling
Ashley Mills 10 жил өмнө
parent
commit
cf126c0584
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      README.md

+ 5 - 1
README.md

@@ -122,7 +122,11 @@ NSNotificationCenter.defaultCenter().addObserver(self,
                                                  name: ReachabilityChangedNotification,
                                                  name: ReachabilityChangedNotification,
                                                  object: reachability)
                                                  object: reachability)
 
 
-reachability.startNotifier()
+do{
+      try reachability.startNotifier()
+    }catch{
+      print("could not start reachability notifier")
+    }
 ```
 ```
 
 
 and
 and