Преглед изворни кода

[FIX] catch error if fail modules fetching

Gogs пре 7 година
родитељ
комит
3d4a0ecc8d
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/store/actions.js

+ 3 - 1
src/store/actions.js

@@ -8,7 +8,9 @@ const actions = {
         ]
         ]
 
 
         Promise.all(promises).then(() => {
         Promise.all(promises).then(() => {
-            console.log('ok')
+            console.log('loaded')
+        }).catch(error => {
+            console.log(error)
         })
         })
     }
     }
 }
 }