diff options
author | Nick White <git@njw.name> | 2020-08-17 17:19:02 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-08-17 17:19:02 +0100 |
commit | d384b8b57bb8ec49eb60661f58ea4d696fc2b339 (patch) | |
tree | 281af8f4421795cb267d3fd3a170d47a085186ae /preprocmulti.go | |
parent | f0363816937de806e71df80c435f13e4cd52249d (diff) |
Fix some error printing in PreProcMulti()v0.4.0
Diffstat (limited to 'preprocmulti.go')
-rw-r--r-- | preprocmulti.go | 4 |
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) } |