[
https://issues.apache.org/jira/browse/CASSANDRA-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637960#comment-13637960
]
Jay Liu commented on CASSANDRA-5247:
------------------------------------
inFileMode swallows the exception (which should be thrown to outer)
{code}
if(sessionState.isFileMode(){
FileReader fileReader;
try {
fileReader = new FileReader(sessionState.filename);
}catch(IOException e) {
sessionState.err.println(e.getMessage());
return;//here returns main method and exit JVM. should re-throw exception
instead.
}
}
{code}
> cassandra-cli should exit with error-exit status on all errors which cause it
> to exit.
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-5247
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5247
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Affects Versions: 1.2.1
> Reporter: Robert P. Thille
> Priority: Minor
> Labels: lhf
>
> running cassandra-cli with a --file argument which does not exist returns
> success:
> ubuntu@host:~$ cassandra-cli --file does-not-exist ; echo $?
> does-not-exist (No such file or directory)
> 0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira