From 07e3d60146de6c5906382e378cdcb3d6a6989cd0 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Tue, 14 Feb 2017 14:37:12 +0100 Subject: Change Output interface to return an error --- output/stdout/stdout.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'output/stdout') diff --git a/output/stdout/stdout.go b/output/stdout/stdout.go index 9d66581..f3e4f57 100644 --- a/output/stdout/stdout.go +++ b/output/stdout/stdout.go @@ -19,6 +19,7 @@ func New(map[string]string) output.Output { return &StdoutOutput{} } -func (o *StdoutOutput) Output(w *work.Work) { - fmt.Printf("%s\n", w.Data) +func (o *StdoutOutput) Output(w *work.Work) error { + _, err := fmt.Printf("%s\n", w.Data) + return err } -- cgit v1.2.3