mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
Show errors when reading the config file
This commit is contained in:
parent
40b3c4883f
commit
771e60bd07
@ -207,7 +207,7 @@ func LoadConfig() {
|
||||
var err error
|
||||
ConfigFile, err = goconfig.LoadConfigFile(ConfigPath)
|
||||
if err != nil {
|
||||
log.Printf("Failed to load config file %v - using defaults", ConfigPath)
|
||||
log.Printf("Failed to load config file %v - using defaults: %v", ConfigPath, err)
|
||||
ConfigFile, err = goconfig.LoadConfigFile(os.DevNull)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to read null config file: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user