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 1ed0dab commit 5f0f8de
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 @@ -409,7 +409,7 @@ func (p *Packager) processComponentFiles(component v1alpha1.ZarfComponent, pkgLo
// 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 5f0f8de

Please sign in to comment.