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.
|
// Wait for the command to finish.
|
||||||
err = childCmd.Wait()
|
err = childCmd.Wait()
|
||||||
if exitErr, ok := err.(*exec.ExitError); ok {
|
if exitErr, ok := err.(*exec.ExitError); ok {
|
||||||
|
@ -156,6 +148,14 @@ Example usage:
|
||||||
// Wait for the goroutines to finish printing to stdout and stderr.
|
// Wait for the goroutines to finish printing to stdout and stderr.
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
|
if stdoutErr != nil {
|
||||||
|
return stdoutErr
|
||||||
|
}
|
||||||
|
|
||||||
|
if stderrErr != nil {
|
||||||
|
return stderrErr
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue