From 9d80e094ee18e7ee19a0cc35d7fac4bf35b0c744 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 13 Dec 2019 13:24:02 +0000 Subject: Mention training in ocr error message --- cmd/bookpipeline/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index 0d310f1..022c118 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -180,7 +180,7 @@ func ocr(training string) func(chan string, chan string, chan error, *log.Logger for range toocr { } // consume the rest of the receiving channel so it isn't blocked close(up) - errc <- errors.New(fmt.Sprintf("Error ocring %s: %s\nStdout: %s\nStderr: %s\n", path, err, stdout.String(), stderr.String())) + errc <- errors.New(fmt.Sprintf("Error ocring %s with training %s: %s\nStdout: %s\nStderr: %s\n", path, training, err, stdout.String(), stderr.String())) return } up <- name + ".hocr" -- cgit v1.2.1-24-ge1ad