From 6878ddb76f53a51da3a7278dc4c1fe651fbc718a Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 29 Jun 2022 08:24:57 +0600 Subject: [PATCH] More user-friendly warning about non-existing module of rpc #4568 --- node/rpcstack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/rpcstack.go b/node/rpcstack.go index 42da30d18..5249ee1d3 100644 --- a/node/rpcstack.go +++ b/node/rpcstack.go @@ -465,7 +465,7 @@ func newGzipHandler(next http.Handler) http.Handler { // and then registers all of the APIs exposed by the services. func RegisterApisFromWhitelist(apis []rpc.API, modules []string, srv *rpc.Server, exposeAll bool) error { if bad, available := checkModuleAvailability(modules, apis); len(bad) > 0 { - log.Error("Unavailable modules in HTTP API list", "unavailable", bad, "available", available) + log.Error("Non-existing modules in HTTP API list, please remove it", "non-existing", bad, "existing", available) } // Generate the whitelist based on the allowed modules whitelist := make(map[string]bool)