Pavel %!s(int64=7) %!d(string=hai) anos
pai
achega
3dcf3c1d78
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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());
         })
       }
   }