Skip to content

Commit

Permalink
Update errors returned from login utils
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Dec 9, 2024
1 parent a15412d commit 9db086e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/loftconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func AuthDevpodCliToPlatform(config *client.Config, logger log.Logger) error {
out, err := cmd.CombinedOutput()
if err != nil {
logger.Debugf("Failed executing `devpod pro login`: %w, output: %s", err, out)
return fmt.Errorf("error executing 'devpod pro login' command")
return fmt.Errorf("error executing 'devpod pro login' command: %w", err)
}

return nil
Expand All @@ -30,7 +30,7 @@ func AuthVClusterCliToPlatform(config *client.Config, logger log.Logger) error {
out, err := cmd.CombinedOutput()
if err != nil {
logger.Debugf("Failed executing `vcluster login` : %w, output: %s", err, out)
return fmt.Errorf("error executing 'vcluster login' command")
return fmt.Errorf("error executing 'vcluster login' command: %w", err)
}

return nil
Expand Down

0 comments on commit 9db086e

Please sign in to comment.