File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,15 @@ func (c *Config) InitDefault() error {
140
140
if c .TLS != nil {
141
141
if _ , err := os .Stat (c .TLS .Key ); err != nil {
142
142
if os .IsNotExist (err ) {
143
- return errors .E (op , errors .Errorf ("Private key file '%s' does not exist. " , c .TLS .Key ))
143
+ return errors .E (op , errors .Errorf ("private key file '%s' does not exist" , c .TLS .Key ))
144
144
}
145
145
146
146
return errors .E (op , err )
147
147
}
148
148
149
149
if _ , err := os .Stat (c .TLS .Cert ); err != nil {
150
150
if os .IsNotExist (err ) {
151
- return errors .E (op , errors .Errorf ("Public certificate file '%s' does not exist. " , c .TLS .Cert ))
151
+ return errors .E (op , errors .Errorf ("public certificate file '%s' does not exist" , c .TLS .Cert ))
152
152
}
153
153
154
154
return errors .E (op , err )
@@ -158,7 +158,7 @@ func (c *Config) InitDefault() error {
158
158
if c .TLS .RootCA != "" {
159
159
if _ , err := os .Stat (c .TLS .RootCA ); err != nil {
160
160
if os .IsNotExist (err ) {
161
- return errors .E (op , errors .Errorf ("Root CA file '%s' does not exist. " , c .TLS .RootCA ))
161
+ return errors .E (op , errors .Errorf ("root CA file '%s' does not exist" , c .TLS .RootCA ))
162
162
}
163
163
return errors .E (op , err )
164
164
}
You can’t perform that action at this time.
0 commit comments