return error

pull/44/head
Yasuhiro Matsumoto 2017-04-24 19:40:20 +09:00
parent 055cbf0e6f
commit d0cd67efbc
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ package main
import ( import (
"context" "context"
"errors" "errors"
"log"
"github.com/mattn/go-mastodon" "github.com/mattn/go-mastodon"
"github.com/urfave/cli" "github.com/urfave/cli"
@ -15,7 +14,7 @@ func cmdToot(c *cli.Context) error {
if ff != "" { if ff != "" {
text, err := readFile(ff) text, err := readFile(ff)
if err != nil { if err != nil {
log.Fatal(err) return err
} }
toot = string(text) toot = string(text)
} else { } else {