Vadim Pakhnushev created IGNITE-23209:
-----------------------------------------

             Summary: Improve error message when config file couldn't be parsed
                 Key: IGNITE-23209
                 URL: https://issues.apache.org/jira/browse/IGNITE-23209
             Project: Ignite
          Issue Type: Improvement
          Components: cli
            Reporter: Vadim Pakhnushev
            Assignee: Vadim Pakhnushev


When config files passed to the {{cluster init}} command couldn't be parsed 
correctly, it's hard to tell what exactly is wrong.

Exception thrown from the 
{{org.apache.ignite.internal.cli.commands.cluster.init.ClusterInitOptions#clusterConfiguration}}
 doesn't seem to be handled correctly.

If you pass non-HOCON/JSON file to the {{--config-files}} option, the error 
will be:
{code:java}
Unknown error
String: 1: Key '<' may not be followed by token: '?' (Reserved character '?' is 
not allowed outside quotes) (if you intended '?' (Reserved character '?' is not 
allowed outside quotes) to be part of a key or string value, try enclosing the 
key or value in double quotes) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to