Skip to content

Commit

Permalink
Just print errors to stderr, don't log
Browse files Browse the repository at this point in the history
  • Loading branch information
hrs committed May 14, 2023
1 parent 08612d3 commit f81720b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package main

import (
"flag"
"log"
"fmt"
"os"
)

func makeCorpus(paths []string) *Corpus {
Expand All @@ -12,7 +13,7 @@ func makeCorpus(paths []string) *Corpus {
doc, err := NewDocument(path)

if err != nil {
log.Println(err)
fmt.Fprintln(os.Stderr, err)
} else {
documents = append(documents, doc)
}
Expand Down

0 comments on commit f81720b

Please sign in to comment.