mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-01 03:29:12 -05:00
error output fix
This commit is contained in:
@@ -75,6 +75,11 @@ func execGpgAndReadOutput(ctx context.Context, in []byte, args []string) (*bytes
|
||||
|
||||
if state.Exited() {
|
||||
if state.ExitCode() != 0 {
|
||||
waitErr := eg.Wait()
|
||||
if waitErr != nil {
|
||||
return nil, nil, fmt.Errorf("failed to read output for command '%s': %w", cmdStr, waitErr)
|
||||
}
|
||||
|
||||
return nil, nil, fmt.Errorf("command '%s' exited with code %d. stdout: '%s', stderr: '%s'", cmdStr, state.ExitCode(), outBuf.String(), errBuf.String())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user