There is no way to see if a node encountered an error when trying to set a new config set, this commit adds a bool errSet field.
Returns a valid config.json of the setup. In case of distributed setup, it checks if quorum or more number of nodes have the same config.json.