Skip to content

Commit

Permalink
cmd: write error to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Sep 29, 2021
1 parent f98b58f commit b229ea6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/celestia/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package main

import (
"fmt"
"os"

logging "github.com/ipfs/go-log/v2"
"github.com/spf13/cobra"
)
Expand All @@ -12,7 +15,8 @@ func init() {
func main() {
err := run()
if err != nil {
return
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}

Expand Down

0 comments on commit b229ea6

Please sign in to comment.