diff --git a/trans/trans.go b/trans/trans.go index 3889964..1340d5d 100644 --- a/trans/trans.go +++ b/trans/trans.go @@ -21,7 +21,7 @@ func New(word, fromLang, toLang string) transJob { func (tj transJob) Translate() []string { outBytes, err := tj.execTrans() if err != nil { - log.Fatal("Failed to execute command 'trans'!") + log.Fatalf("Failed to execute command 'trans': %v", err) } return uniqueSlice(parseTransOutput(string(outBytes))) }