mirror of https://github.com/databricks/cli.git
return stdout / stderr errors after
This commit is contained in:
parent
88b6dc8e16
commit
fd2600cbea
|
@ -129,14 +129,6 @@ Example usage:
|
|||
}
|
||||
}()
|
||||
|
||||
if stdoutErr != nil {
|
||||
return stdoutErr
|
||||
}
|
||||
|
||||
if stderrErr != nil {
|
||||
return stderrErr
|
||||
}
|
||||
|
||||
// Wait for the command to finish.
|
||||
err = childCmd.Wait()
|
||||
if exitErr, ok := err.(*exec.ExitError); ok {
|
||||
|
@ -156,6 +148,14 @@ Example usage:
|
|||
// Wait for the goroutines to finish printing to stdout and stderr.
|
||||
wg.Wait()
|
||||
|
||||
if stdoutErr != nil {
|
||||
return stdoutErr
|
||||
}
|
||||
|
||||
if stderrErr != nil {
|
||||
return stderrErr
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue