Non user-friendly error message when trying to save a workflow without any action metadata provided (name, entrypoint, etc.) · Issue #320 · StackStorm/st2flow · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 27, 2021. It is now read-only.
Repository navigation
This repository was 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
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.
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.
Activity
bmomberger-bitovi commentedon Apr 9, 2019
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.