Skip to content

Python expression preview doesn't always report errors #3012

Description

@tfmorris

To Reproduce

  1. Select "Add Column based on this Column"
  2. With the expression cells.a.value.toNumber() - cells.b.value.toNumber(), switch the expression language to Python

Current Results

No error message is displayed, presumably because the response has an "ok" status:

{"code":"ok","results":[{"message":"Traceback (most recent call last):\n  File \"<string>\", line 2, in __temp_594255022__\nAttributeError: 'unicode' object has no attribute 'toNumber'\n"}]}

Expected Behavior

The error message should be displayed to the user

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIndicates issues suitable for newcomers to design or coding, providing a gentle introduction.Type: BugIssues related to software defects or unexpected behavior, which require resolution.error handlingImproving the ways errors are reported to usersjythonUses of Python as expression language via Jython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions