You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Mikhail Stepura (JIRA)" <ji...@apache.org> on 2014/05/06 00:44:16 UTC

[jira] [Commented] (CASSANDRA-6344) When running CQLSH with file input, exit with error status code if script fails

    [ https://issues.apache.org/jira/browse/CASSANDRA-6344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990061#comment-13990061 ] 

Mikhail Stepura commented on CASSANDRA-6344:
--------------------------------------------

[~swong15]
Does it make sense to move {{self.error = True}} into {{bin.cqlsh.Shell#printerr()}} ? 

> When running CQLSH with file input, exit with error status code if script fails
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6344
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6344
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Tools
>            Reporter: Branden Visser
>              Labels: lhf
>             Fix For: 1.2.17, 2.0.8, 2.1 rc1
>
>         Attachments: CASSANDRA-6344.txt
>
>
> Just thought it would be nice if the cqlsh process would exit with an error status code if there are errors in the script, since it is the only thing the cqlsh process does when executing.
> Preferably a predictable status code could be used for a script error to discern it from some other odd error (i.e., don't use `1` because that could be many things). Maybe `2` or something.



--
This message was sent by Atlassian JIRA
(v6.2#6252)