Skip to content

Commit cafadad

Browse files
committed
add missing error check
1 parent 758ebab commit cafadad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/env-loader/cmd/env-loader.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ func run(c *config) error {
114114
}
115115

116116
// Write it to stdout
117-
outputPrinter(envValueOutput)
117+
_, err = outputPrinter(envValueOutput)
118+
if err != nil {
119+
return trace.Wrap(err, "failed to print output %q", envValueOutput)
120+
}
121+
118122
return nil
119123
}
120124

0 commit comments

Comments
 (0)