Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1493

Unhelpful Error Message When Assignment Expressions Fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Done
    • Major
    • Resolution: Done
    • 0.4.2
    • 0.5.0
    • None

    Description

      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.

      [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)
      

      Attachments

        Issue Links

          Activity

            People

              nickwallen Nick Allen
              nickwallen Nick Allen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: