Skip to content

Commit

Permalink
fix: exit on docker client errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jan 5, 2025
1 parent ba30595 commit c1b202b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/project/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ func (s *Service) RunContainer(stop <-chan bool, updates chan<- ServiceRunUpdate
Err: err,
}

return nil
// Failing to create the container is a fatal error so we will return here
return err
}

// defer removing container so logs can be retrieved, used instead of AutoRemove
Expand All @@ -444,7 +445,8 @@ func (s *Service) RunContainer(stop <-chan bool, updates chan<- ServiceRunUpdate
Err: err,
}

return nil
// Failing to create the container is a fatal error so we will return here
return err
}

updates <- ServiceRunUpdate{
Expand Down

0 comments on commit c1b202b

Please sign in to comment.