User-friendly error messages in wrangler

Description

Error messages due to formula (ternjs parse error) and execution errors could be improved to better help the user resolve the problem. For example, parse errors:
Field that doesn't exist Cannot read property 'replace' of null.
Program is too long
We should map these errors to the likely cause: invalid field name specified, closing parenthesis mismatch, etc.

Execution queries usually provide a useful message followed by the full query submitted to the engine. The user should not need to see the entire query. We should extract the meaningful part of the message.

There is also an angular hook that puts a toast message with the same error as in the dialog.
We should remove the toast and treat the error as handled.

Assignee

Matt Hutton

Reporter

Matt Hutton

Labels

None

Reviewer

None

Components

Sprint

None

Fix versions

Priority

Medium
Configure