Skip to content

Commit

Permalink
better formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <[email protected]>
  • Loading branch information
kartikaysaxena committed Dec 26, 2024
1 parent 46d42a0 commit c13b128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"context"
"errors"
"fmt"
"io"
"os"
"os/signal"
Expand Down Expand Up @@ -133,7 +134,7 @@ func Run() {

if err := rootCmd.ExecuteContext(ctx); err != nil {
if !errors.Is(err, errParsing) {
log.Err(err).Msg("terminated with errors")
log.Error().Msg(fmt.Sprintf("terminated with errors: %s", err.Error()))
}

os.Exit(1)
Expand Down

0 comments on commit c13b128

Please sign in to comment.