[NOD-981] Fixed error message when both --notls and --rpccert ommited (#713)

This commit is contained in:
Svarog 2020-05-06 13:05:48 +03:00 committed by GitHub
parent 3d04e6bded
commit c8a381d5bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ func parseConfig() (*configFlags, error) {
}
if cfg.RPCCert == "" && !cfg.DisableTLS {
return nil, errors.New("--notls has to be disabled if --cert is used")
return nil, errors.New("either --notls or --rpccert must be specified")
}
if cfg.RPCCert != "" && cfg.DisableTLS {
return nil, errors.New("--rpccert should be omitted if --notls is used")