mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
added error check
This commit is contained in:
parent
03172faf69
commit
9651389d23
1 changed files with 3 additions and 0 deletions
|
|
@ -425,6 +425,9 @@ func (n *Node) startWS(endpoint string, apis []rpc.API, modules []string, wsOrig
|
|||
handler := srv.WebsocketHandler(wsOrigins)
|
||||
|
||||
err := RegisterApisFromWhitelist(apis, modules, srv, exposeAll)
|
||||
if err != nil {
|
||||
return err // TODO this should return upon failure, right?
|
||||
}
|
||||
|
||||
listener, err := rpc.StartWSEndpoint(endpoint, handler)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue