mirror of https://github.com/apache/cassandra
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:
parent
0293e8b750
commit
1a0a3b719e
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue