Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1551] improve(server): Optimize the error message #1620

Merged
merged 4 commits into from
Jan 24, 2024

Conversation

jerryshao
Copy link
Contributor

What changes were proposed in this pull request?

This PR optimize the error message to make it more meaningful to the UI.

Previously it outputs the exception class name, which is not meaningful to users. Now change to the actual error message like below:

Failed to operate table(s) [ADMINISTRABLE_ROLE_AUTHORIZATIONS] operation [LOAD] under schema [information_schema], reason [Failed to parse create table information_schema.ADMINISTRABLE_ROLE_AUTHORIZATIONS SQL]

The reason field is only the error message now.

Why are the changes needed?

To make the error message on UI more meaningful.

Fix: #1551

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Local verify.

@jerryshao
Copy link
Contributor Author

@yuqi1129 @qqqttt123 please review again.

Copy link
Contributor

@yuqi1129 yuqi1129 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jerryshao jerryshao merged commit 0ec0d3d into apache:main Jan 24, 2024
12 checks passed
mchades pushed a commit to mchades/gravitino that referenced this pull request Jan 24, 2024
### What changes were proposed in this pull request?

This PR optimize the error message to make it more meaningful to the UI.

Previously it outputs the exception class name, which is not meaningful
to users. Now change to the actual error message like below:

```
Failed to operate table(s) [ADMINISTRABLE_ROLE_AUTHORIZATIONS] operation [LOAD] under schema [information_schema], reason [Failed to parse create table information_schema.ADMINISTRABLE_ROLE_AUTHORIZATIONS SQL]
```

The reason field is only the error message now.


### Why are the changes needed?

To make the error message on UI more meaningful.

Fix: apache#1551 

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Local verify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] The API message should display slightly more complete content
3 participants