~themue/golxc/003-added-network

« back to all changes in this revision

Viewing changes to golxc.go

  • Committer: Frank Mueller
  • Date: 2013-01-31 17:12:41 UTC
  • Revision ID: themue@gmail.com-20130131171241-cnvkqch3ofjuo4gv
golxc: changes after review

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
// run executes the passed command and returns the out.
309
309
func run(name string, args ...string) (string, error) {
310
310
        cmd := exec.Command(name, args...)
 
311
        // LXC message and error printing is inconsistent
 
312
        // using stdout and stderr mixed and in different
 
313
        // message formats. So using CombinedOutput() and
 
314
        // analyzing it in runError() in case of an error.
311
315
        out, err := cmd.CombinedOutput()
312
316
        if err != nil {
313
317
                return "", runError(name, err, out)