This PR checks if NodeGetInfo returns error. If so, it returns the error. Without this change, it always returns no error (nil) regardless of whether NodeGetInfo returns error.