diff --git a/cmd/cmd.go b/cmd/cmd.go index 7988e70..ff449eb 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -58,13 +58,13 @@ func Go() { body, err := ioutil.ReadAll(os.Stdin) if err != nil { - fmt.Fprintln(os.Stderr, "error reading stdin") + fmt.Fprintln(os.Stderr, "error reading stdin", err) os.Exit(11) } msg, err := mail.ReadMessage(bytes.NewReader(body)) if err != nil { - fmt.Fprintln(os.Stderr, "error parsing message body") + fmt.Fprintln(os.Stderr, "error parsing message body", err) os.Exit(11) }