diff --git a/.gitignore b/.gitignore index 5cb3fe5..e4e657c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ *.so acmetool_multidns_hooks -dns.hook +dns.* main diff --git a/main.go b/main.go index 3f54d0e..10fc9ca 100644 --- a/main.go +++ b/main.go @@ -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) } } @@ -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) } }