-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert ConfigurationException due to binary incompatibility #6201
Revert ConfigurationException due to binary incompatibility #6201
Conversation
@@ -16,11 +16,11 @@ namespace Akka.Configuration | |||
/// </summary> | |||
public class ConfigurationException : AkkaException | |||
{ | |||
public static ConfigurationException NullOrEmptyConfig<T>(string path = null, string reason = null) | |||
public static ConfigurationException NullOrEmptyConfig<T>(string path = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting this back to the old method fingerprint
@@ -35,7 +35,7 @@ public ClusterSettings(Config config, string systemName) | |||
//TODO: Requiring! | |||
var clusterConfig = config.GetConfig("akka.cluster"); | |||
if (clusterConfig?.GetConfig("failure-detector") == null) | |||
throw ConfigurationException.NullOrEmptyConfig<ClusterSettings>("akka.cluster", "Did you forgot to set the 'akka.cluster.provider' HOCON property to 'cluster'?"); | |||
throw new ConfigurationException($"Failed to instantiate {nameof(ClusterSettings)}: Configuration does not contain `akka.cluster` node. Did you forgot to set the 'akka.cluster.provider' HOCON property to 'cluster'?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just bake the exception message instead of using the helper method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs API approvals
Done |
@Arkatufus going to give tests a chance to run, then we can push a new release |
Fixes #6200
Changes
Revert changes to the static method