You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Nick Allen (JIRA)" <ji...@apache.org> on 2018/03/16 13:05:00 UTC
[jira] [Created] (METRON-1493) Unhelpful Error Message When
Assignment Expressions Fail
Nick Allen created METRON-1493:
----------------------------------
Summary: Unhelpful Error Message When Assignment Expressions Fail
Key: METRON-1493
URL: https://issues.apache.org/jira/browse/METRON-1493
Project: Metron
Issue Type: Improvement
Affects Versions: 0.4.2
Reporter: Nick Allen
Assignee: Nick Allen
Fix For: Next + 1
When running a bad assignment expression in the REPL, the error message provides no help as to why the expression fails. It only says that the expression fails, which is obvious. This needs to report back to the user the root cause of the assignment expression failing.
{code}
[Stellar]>>> p := 0/0
[!] Assignment expression failed
java.lang.IllegalArgumentException: Assignment expression failed
at org.apache.metron.stellar.common.shell.StellarResult.error(StellarResult.java:115)
at org.apache.metron.stellar.common.shell.specials.AssignmentCommand.execute(AssignmentCommand.java:82)
at org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor.execute(DefaultStellarShellExecutor.java:252)
at org.apache.metron.stellar.common.shell.cli.StellarShell.execute(StellarShell.java:357)
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)