Skip to content

Commit

Permalink
fix panic error
Browse files Browse the repository at this point in the history
  • Loading branch information
md2k committed Aug 1, 2016
1 parent a14ee30 commit 6c7d423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
*.so

acmetool_multidns_hooks
dns.hook
dns.*
main
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func main() {
logging.Log.Debugf("Event: %s.", args[0])
os.Exit(1)
default:
logging.Log.Criticalf("%s", err.Error())
logging.Log.Criticalf("Event '%s' not implemented.", args[0])
os.Exit(1)
}
}
Expand Down Expand Up @@ -143,7 +143,7 @@ func initDnsHook(cfg *config.HookConfig, args []string) (*Client, error) {
Provider: provider,
}, nil
default:
return nil, fmt.Errorf("%s", "No Provider's Module Available")
return nil, fmt.Errorf("No '%s' provider module available", providerCfg.Provider)
}

}
Expand Down

0 comments on commit 6c7d423

Please sign in to comment.