Pavel il y a 7 ans
Parent
commit
3dcf3c1d78
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      hw2/weatherGenerator/files/js/index.js

+ 3 - 0
hw2/weatherGenerator/files/js/index.js

@@ -88,6 +88,9 @@ function run(g){
       if(!result.done){
         result.value.then(function(data){
           handle(gen.next(data));
+        }).catch(function(error){
+          throw(error);
+          handle(gen.next());
         })
       }
   }