From bfe749b06a9f94d10156dbc6eb58b2276ac2267c Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 1 Oct 2021 12:40:41 +0100 Subject: 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 --- cmd/rescribe/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- cgit v1.2.1-24-ge1ad