[ https://issues.apache.org/jira/browse/FALCON-749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas updated FALCON-749: ----------------------------------- Attachment: FALCON-749.patch Here is the output with the patch. {noformat} falcon entity -type jlsjflsfs -submit -file ~/.profile Stacktrace: org.apache.falcon.client.FalconCLIException: Bad Request;Invalid entity type: jlsjflsfs. Expected [feed, process, cluster]. at org.apache.falcon.client.FalconCLIException.fromReponse(FalconCLIException.java:44) at org.apache.falcon.client.FalconClient.checkIfSuccessful(FalconClient.java:1132) at org.apache.falcon.client.FalconClient.sendEntityRequestWithObject(FalconClient.java:686) at org.apache.falcon.client.FalconClient.submit(FalconClient.java:319) at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:376) at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:195) at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:144) {noformat} For some reason on trunk the CLI is printing the whole exception! > Improve error printed in falcon CLI > ----------------------------------- > > Key: FALCON-749 > URL: https://issues.apache.org/jira/browse/FALCON-749 > Project: Falcon > Issue Type: Improvement > Components: client > Reporter: Suresh Srinivas > Assignee: Suresh Srinivas > Attachments: FALCON-749.patch > > > When a wrong entity type is provided, falcon CLI prints the following error: > {noformat} > falcon entity -type jlsjflsfs -submit -file virginiaCluster.xml > Error: No enum constant org.apache.falcon.entity.v0.EntityType.JLSJFLSFS > {noformat} > This can be improved to provide an error that is easier to understand. -- This message was sent by Atlassian JIRA (v6.3.4#6332)