summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-12-13 13:24:02 +0000
committerNick White <git@njw.name>2019-12-13 13:24:02 +0000
commit9d80e094ee18e7ee19a0cc35d7fac4bf35b0c744 (patch)
treef1783b43835738d5ae23a15aa90d52cecd183d0e
parentf36889e67c916b4518750ac4167a8192fca958b4 (diff)
Mention training in ocr error message
-rw-r--r--cmd/bookpipeline/main.go2
1 files changed, 1 insertions, 1 deletions
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"