Ubuntu Pastebin

Paste from menn0 at Thu, 28 Apr 2016 01:06:02 +0000

Download as text
1
2
3
4
5
6
7
var output bytes.Buffer
cmd.Stdout = &output
cmd.Stderr = &output

...

return version.Binary{}, errors.Errorf("cannot get version from %q: %v; %s", path, err, output.String())
Download as text