diff --git a/export/pprint.go b/export/pprint.go index 811c05d..5e369d6 100644 --- a/export/pprint.go +++ b/export/pprint.go @@ -9,7 +9,7 @@ import ( type PrettyPrint struct{} // Export logs exported data to console as pretty printed -func (*PrettyPrint) Export(exports chan interface{}) { +func (*PrettyPrint) Export(exports chan interface{}) error { for res := range exports { dat, err := json.MarshalIndent(res, "", " ") if err != nil { @@ -17,4 +17,5 @@ func (*PrettyPrint) Export(exports chan interface{}) { } fmt.Println(string(dat)) } + return nil }