NodeSettings.onError property

Called with any errors from the Node.

This includes both errors which will cause the node to exit, and those that do not but may e.g. indicate a connection has failed.

Signature:

onError?: (error: Error) => void;