Skip to content

Commit

Permalink
Ensure all log error messages are displayed from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-nicola committed Oct 17, 2022
1 parent 67bdf8b commit d993d4b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/languagemodeling/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/questionanswering/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/relationextraction/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/textclassification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/textencoding/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/textgeneration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/tokenclassification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}
2 changes: 1 addition & 1 deletion examples/zeroshotclassification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ func main() {

err = ForEachInput(os.Stdin, fn)
if err != nil {
log.Fatal().Err(err)
log.Fatal().Err(err).Send()
}
}

0 comments on commit d993d4b

Please sign in to comment.