summaryrefslogtreecommitdiff
path: root/cmd/rescribe/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-10-01 12:40:41 +0100
committerNick White <git@njw.name>2021-10-01 12:40:41 +0100
commitbfe749b06a9f94d10156dbc6eb58b2276ac2267c (patch)
tree7d8639f80168abc274724214cb1bcede75f05aab /cmd/rescribe/main.go
parent37a1581288447ca63412047fec0fb081043ba6fb (diff)
rescribe: Add both original training path and embedded version on error output for training file not found, so that its clear that the file specified may not exist
Diffstat (limited to 'cmd/rescribe/main.go')
-rw-r--r--cmd/rescribe/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go
index 251c333..bbb2c54 100644
--- a/cmd/rescribe/main.go
+++ b/cmd/rescribe/main.go
@@ -220,7 +220,7 @@ These training files are included in rescribe, and are always available:
f, err := os.Open(trainingPath)
if err != nil {
- fmt.Fprintf(os.Stderr, "Error: Training file %s could not be opened.\n", trainingPath)
+ fmt.Fprintf(os.Stderr, "Error: Training files %s or %s could not be opened.\n", *training, trainingPath)
fmt.Fprintf(os.Stderr, "Set the `-t` flag with path to a tesseract .traineddata file.\n")
os.Exit(1)
}