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