summaryrefslogtreecommitdiff
path: root/output/stdout
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2017-02-14 14:37:12 +0100
committerSilvan Jegen <s.jegen@gmail.com>2017-02-14 14:37:12 +0100
commit07e3d60146de6c5906382e378cdcb3d6a6989cd0 (patch)
tree91b336dc01c4c7631a405132b935c2dd803d98e5 /output/stdout
parent543eea285200c8955f42c5eb202a222105259587 (diff)
Change Output interface to return an error
Diffstat (limited to 'output/stdout')
-rw-r--r--output/stdout/stdout.go5
1 files changed, 3 insertions, 2 deletions
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
}