Skip to content

Commit

Permalink
refactor: replace debug logs with returning errors (#2777)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Laine <[email protected]>
  • Loading branch information
phillebaba authored Aug 6, 2024
1 parent 8c9c164 commit bd182b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var connectCmd = &cobra.Command{
spinner.Updatef(lang.CmdConnectEstablishedWeb, tunnel.FullURL())

if err := exec.LaunchURL(tunnel.FullURL()); err != nil {
message.Debug(err)
return err
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pkg/packager/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func (p *Packager) processComponentFiles(component types.ZarfComponent, pkgLocat
// Check if the file looks like a text file
isText, err := helpers.IsTextFile(subFile)
if err != nil {
message.Debugf("unable to determine if file %s is a text file: %s", subFile, err)
return err
}

// If the file is a text file, template it
Expand Down

0 comments on commit bd182b4

Please sign in to comment.