File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ func main() {
143
143
}
144
144
145
145
if (certFile != "" && keyFile == "" ) || (certFile == "" && keyFile != "" ) {
146
- setupLog .Error (nil , "unable to configure TLS certificates: tls-cert and tls-key flags must be used together" )
146
+ setupLog .Error (fmt . Errorf ( "unable to configure TLS certificates" ), " tls-cert and tls-key flags must be used together" )
147
147
os .Exit (1 )
148
148
}
149
149
150
150
if metricsAddr != "" && certFile == "" && keyFile == "" {
151
- setupLog .Error (nil , "metrics-bind-address requires tls-cert and tls-key flags to be set" )
151
+ setupLog .Error (fmt . Errorf ( "unable to configure metrics-bind-address" ) , "metrics-bind-address requires tls-cert and tls-key flags to be set" )
152
152
os .Exit (1 )
153
153
}
154
154
Original file line number Diff line number Diff line change @@ -128,12 +128,12 @@ func main() {
128
128
}
129
129
130
130
if (certFile != "" && keyFile == "" ) || (certFile == "" && keyFile != "" ) {
131
- setupLog .Error (nil , "unable to configure TLS certificates: tls-cert and tls-key flags must be used together" )
131
+ setupLog .Error (fmt . Errorf ( "unable to configure TLS certificates" ), " tls-cert and tls-key flags must be used together" )
132
132
os .Exit (1 )
133
133
}
134
134
135
135
if metricsAddr != "" && certFile == "" && keyFile == "" {
136
- setupLog .Error (nil , "metrics-bind-address requires tls-cert and tls-key flags to be set" )
136
+ setupLog .Error (fmt . Errorf ( "unable to configure metrics-bind-address" ) , "metrics-bind-address requires tls-cert and tls-key flags to be set" )
137
137
os .Exit (1 )
138
138
}
139
139
You can’t perform that action at this time.
0 commit comments