Skip to content

Commit dcb5350

Browse files
committed
system/info: failure to connect to docker socket should propagate error
Signed-off-by: Alano Terblanche <[email protected]>
1 parent 7ec69de commit dcb5350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/system/info.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func runInfo(ctx context.Context, cmd *cobra.Command, dockerCli command.Cli, opt
110110
} else {
111111
// if a format is provided, print the error, as it may be hidden
112112
// otherwise if the template doesn't include the ServerErrors field.
113-
fprintln(dockerCli.Err(), err)
113+
return cli.StatusError{StatusCode: 125, Cause: err}
114114
}
115115
}
116116
}

0 commit comments

Comments
 (0)