Skip to content

error handling normalization in front-end  #467

Open
@standlove

Description

@standlove

Now we can consolidate the error handling in one place.

If the received error is 500 with message = ConnectFailed or ConnectTimeout, dispatch the RedisConnectFailed event.

If the command is from CLI, we will just display the message in CLI directly; otherwise, we can simply display the error with: this.util.showMessage(message).

The "Fail to import xxx" etc. prefix is not necessary.

And an extra note about the error from import dialog, you should show the lineNo of the failed command as well.

And the dialog should only be auto-closed if the operation is successful. Don't close it if there is any error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions