Skip to content

Commit

Permalink
fix: use errorf instead of log, add ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Apr 6, 2024
1 parent 952d520 commit 37e03c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
Expand Down Expand Up @@ -156,7 +157,7 @@ func suggestAppStart(cwd string) string {
var samples SamplesFile
err = json.Unmarshal(fileBytes, &samples)
if err != nil {
log.Fatalf("failed to unmarshal JSON: %v", err)
errors.Errorf("failed to unmarshal JSON: %v", err)
}

for _, sample := range samples.Samples {
Expand Down

0 comments on commit 37e03c5

Please sign in to comment.