CASSANDRA-15754: Provide the root cause exception. Remove the misleading message 'Invalid yaml', as the root cause may be different.

This commit is contained in:
tashoyan 2020-04-23 16:34:02 +02:00 committed by Arseniy Tashoyan
parent 0293e8b750
commit 1a0a3b719e
1 changed files with 2 additions and 4 deletions

View File

@ -35,8 +35,6 @@ import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.common.io.ByteStreams;
import org.apache.commons.lang3.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -132,8 +130,8 @@ public class YamlConfigurationLoader implements ConfigurationLoader
}
catch (YAMLException e)
{
throw new ConfigurationException("Invalid yaml: " + url + SystemUtils.LINE_SEPARATOR
+ " Error: " + e.getMessage(), false);
String msg = "Failed to load configuration from " + url;
throw new ConfigurationException(msg, e);
}
}