Skip to content

Commit

Permalink
Merge 9c40ec8 into a41538d
Browse files Browse the repository at this point in the history
  • Loading branch information
gianarb authored Feb 25, 2021
2 parents a41538d + 9c40ec8 commit 4179a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/tink-cli/cmd/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func NewDeleteCommand(opt Options) *cobra.Command {
var conn *grpc.ClientConn
conn, err = client.NewClientConn(opt.clientConnOpt)
if err != nil {
println("Flag based client configuration failed with err: %s. Trying with env var legacy method...", err)
fmt.Fprintf(cmd.ErrOrStderr(), "Flag based client configuration failed with err: %s. Trying with env var legacy method...", err)
// Fallback to legacy Setup via env var
conn, err = client.GetConnection()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-cli/cmd/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewGetCommand(opt Options) *cobra.Command {
var conn *grpc.ClientConn
conn, err = client.NewClientConn(opt.clientConnOpt)
if err != nil {
println("Flag based client configuration failed with err: %s. Trying with env var legacy method...", err)
fmt.Fprintf(cmd.ErrOrStderr(), "Flag based client configuration failed with err: %s. Trying with env var legacy method...", err)
// Fallback to legacy Setup via env var
conn, err = client.GetConnection()
if err != nil {
Expand Down

0 comments on commit 4179a6a

Please sign in to comment.