summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/getsamplepages/main.go2
-rw-r--r--cmd/rescribe/main.go4
2 files changed, 2 insertions, 4 deletions
diff --git a/cmd/getsamplepages/main.go b/cmd/getsamplepages/main.go
index cb32700..bb9d0be 100644
--- a/cmd/getsamplepages/main.go
+++ b/cmd/getsamplepages/main.go
@@ -96,7 +96,7 @@ func main() {
fn := pg + suffix
err = conn.Download(conn.WIPStorageId(), p+fn, name+fn)
if err != nil {
- log.Fatalf("Download of %s%s failed: %v\n", p+fn, err)
+ log.Fatalf("Download of %s%s failed: %v\n", p, fn, err)
}
}
}
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go
index db8eb41..251c333 100644
--- a/cmd/rescribe/main.go
+++ b/cmd/rescribe/main.go
@@ -228,7 +228,7 @@ These training files are included in rescribe, and are always available:
abstraining, err := filepath.Abs(trainingPath)
if err != nil {
- log.Fatalf("Error getting absolute path of training %s: %v", err)
+ log.Fatalf("Error getting absolute path of training %s: %v", trainingPath, err)
}
tessPrefix, trainingName := filepath.Split(abstraining)
trainingName = strings.TrimSuffix(trainingName, ".traineddata")
@@ -499,6 +499,4 @@ func processbook(training string, tesscmd string, conn Pipeliner) error {
return nil
}
}
-
- return fmt.Errorf("Ended unexpectedly") // should never be reached
}