summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-08-17 17:19:02 +0100
committerNick White <git@njw.name>2020-08-17 17:19:02 +0100
commitd384b8b57bb8ec49eb60661f58ea4d696fc2b339 (patch)
tree281af8f4421795cb267d3fd3a170d47a085186ae
parentf0363816937de806e71df80c435f13e4cd52249d (diff)
Fix some error printing in PreProcMulti()v0.4.0
-rw-r--r--preprocmulti.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/preprocmulti.go b/preprocmulti.go
index 3725471..f151c49 100644
--- a/preprocmulti.go
+++ b/preprocmulti.go
@@ -72,7 +72,7 @@ func PreProcMulti(inPath string, ksizes []float64, binType string, binWsize int,
if binType == "zeroinv" {
threshimg, err = BinToZeroInv(threshimg.(*image.Gray), img.(*image.RGBA))
if err != nil {
- return donePaths, fmt.Errorf("Error in BinToZeroInv: ", err)
+ return donePaths, fmt.Errorf("Error in BinToZeroInv: %v", err)
}
}
@@ -91,7 +91,7 @@ func PreProcMulti(inPath string, ksizes []float64, binType string, binWsize int,
defer f.Close()
err = png.Encode(f, clean)
if err != nil {
- return donePaths, fmt.Errorf("Error encoding image as png: %v", savefn, err)
+ return donePaths, fmt.Errorf("Error encoding image %s as png: %v", savefn, err)
}
donePaths = append(donePaths, savefn)
}