mirror of
https://github.com/PeernetOfficial/Cmd.git
synced 2026-07-17 02:47:52 +01:00
New debug commands 'debug watch searches' and 'debug bucket refresh'.
Improved debug output. -> core is now alpha 3!
This commit is contained in:
10
Main.go
10
Main.go
@@ -25,19 +25,19 @@ func init() {
|
||||
if status, err := core.LoadConfigOut(configFile, &config); err != nil {
|
||||
switch status {
|
||||
case 0:
|
||||
fmt.Printf("Unknown error accessing config file '%s': %s", configFile, err.Error())
|
||||
fmt.Printf("Unknown error accessing config file '%s': %s\n", configFile, err.Error())
|
||||
case 1:
|
||||
fmt.Printf("Error reading config file '%s': %s", configFile, err.Error())
|
||||
fmt.Printf("Error reading config file '%s': %s\n", configFile, err.Error())
|
||||
case 2:
|
||||
fmt.Printf("Error parsing config file '%s' (make sure it is valid YAML format): %s", configFile, err.Error())
|
||||
fmt.Printf("Error parsing config file '%s' (make sure it is valid YAML format): %s\n", configFile, err.Error())
|
||||
case 3:
|
||||
fmt.Printf("Unknown error loading config file '%s': %s", configFile, err.Error())
|
||||
fmt.Printf("Unknown error loading config file '%s': %s\n", configFile, err.Error())
|
||||
}
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if err := core.InitLog(); err != nil {
|
||||
fmt.Printf("Error opening log file: %s", err.Error())
|
||||
fmt.Printf("Error opening log file: %s\n", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user