Skip to content

Commit

Permalink
Lint and addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bullet-dev-team committed Jan 20, 2023
1 parent 9cba3d0 commit 92008b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/finch/virtual_machine_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ package main

import (
"fmt"
"time"

"github.com/briandowns/spinner"

"github.com/runfinch/finch/pkg/disk"
"time"

"github.com/runfinch/finch/pkg/command"
"github.com/runfinch/finch/pkg/config"
Expand Down Expand Up @@ -100,12 +102,11 @@ func (iva *initVMAction) run() error {
s.Suffix = "VM creation in progress"
s.Start()
logs, err := limaCmd.CombinedOutput()
s.Stop()
if err != nil {
s.Stop()
iva.logger.Errorf("Finch virtual machine failed to start, debug logs: %s", logs)
return err
}
s.Stop()
iva.logger.Info("Finch virtual machine started successfully")
return nil
}
Expand Down

0 comments on commit 92008b3

Please sign in to comment.