logpolicy: report the correct error

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/346/head
Elias Naur 5 years ago committed by Brad Fitzpatrick
parent 0068e57407
commit 7b901fdbbc

@ -206,7 +206,7 @@ func New(collection string) *Policy {
os.Args) os.Args)
log.Printf("LogID: %v\n", newc.PublicID) log.Printf("LogID: %v\n", newc.PublicID)
if filchErr != nil { if filchErr != nil {
log.Printf("filch failed: %v", err) log.Printf("filch failed: %v", filchErr)
} }
return &Policy{ return &Policy{

Loading…
Cancel
Save