lnd+config: Move to FileExists function in lnrpc package

This commit is contained in:
Orbital committed 2023-01-26 13:32:12 -06:00
1 parent c0f44a17b7
commit 21816d9118
3 files changed
+10 -20

No files matched your search

+1 -1
View File
@@ -700,7 +700,7 @@ func LoadConfig(interceptor signal.Interceptor) (*Config, error) {
// User did specify an explicit --configfile, so we check that it does
// exist under that path to avoid surprises.
case configFilePath != DefaultConfigFile:
if !fileExists(configFilePath) {
if !lnrpc.FileExists(configFilePath) {
return nil, fmt.Errorf("specified config file does "+
"not exist in %s", configFilePath)
}