Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Non user-friendly error message when trying to save a workflow without any action metadata provided (name, entrypoint, etc.) #320

Open
Kami opened this issue Apr 9, 2019 · 1 comment

Comments

@Kami
Copy link
Member

Kami commented Apr 9, 2019

If you click "Save Workflow" button before providing any workflow metadata info in the right page (name, entry point, etc.), we just should "Error saving workflow" error message.

We should make that error more useful and friendly. Should probably say something along the lines of "Error saving workflow - fields name and entry point are mandatory". And perhaps also indicate that with * next to the fight in the right pane.

Screenshot from 2019-04-09 17-17-32

@bmomberger-bitovi
Copy link
Contributor

The ToolbarButton component only accepts a single fixed string for when the operation fails when the button is clicked. Currently that string is "Error saving workflow" so that's the only error that's generated. Instead of using this feature, remove the errorMessage property and report errors directly with PUSH_ERROR in the save() function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants