Skip to content

Commit e2d4136

Browse files
committed
Resolve #283
1 parent f121360 commit e2d4136

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/devspace/sync/sync_config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ func (s *SyncConfig) mainLoop() {
218218
err := s.initialSync()
219219
if err != nil {
220220
s.Error(err)
221+
log.Fatalf("[Sync] Sync stopped: %v", err)
221222
return
222223
}
223224

@@ -233,6 +234,7 @@ func (s *SyncConfig) startUpstream() {
233234
err := notify.Watch(s.WatchPath+"/...", s.upstream.events, notify.All)
234235
if err != nil {
235236
s.Error(err)
237+
log.Fatalf("[Sync] Sync stopped: %v", err)
236238
return
237239
}
238240

@@ -245,6 +247,7 @@ func (s *SyncConfig) startUpstream() {
245247
err = s.upstream.mainLoop()
246248
if err != nil {
247249
s.Error(err)
250+
log.Fatalf("[Sync] Sync stopped: %v", err)
248251
}
249252
}
250253

@@ -254,6 +257,7 @@ func (s *SyncConfig) startDownstream() {
254257
err := s.downstream.mainLoop()
255258
if err != nil {
256259
s.Error(err)
260+
log.Fatalf("[Sync] Sync stopped: %v", err)
257261
}
258262
}
259263

0 commit comments

Comments
 (0)