Improve error on python syntax error

Description

The attached pipeline has some bad python syntax. When you try deploying the pipeline, all that comes back is an unhelpful error message that says:

Error configuring stage 'Python': null

I've attached a screenshot of the error.

The root cause is a bad exception thrown by jython:

But the plugin should at least be catching the PySyntaxError and telling the user that there is a syntax error, though what the error is can't be determined if jython isn't saying what it is.

Release Notes

None

Activity

Show:
Muthupandian
January 25, 2019, 12:18 PM

Remove a single whitespace before ` emitter.emit({`

Seems, its moreover the `indentation` issue

Albert Shau
January 25, 2019, 5:48 PM

This jira is not about fixing the user provided code for the python plugin, but about having better error messages when users provide invalid code.

Vinisha Shah
June 28, 2019, 7:07 AM
Fixed

Assignee

Vinisha Shah

Reporter

Albert Shau

Docs Impact

None

UX Impact

None

Components

Fix versions

Priority

Major
Configure