Skip to content

[DINC0374658]:Error message fix when a user with No SDM Roles uploads an attachment#82

Merged
yashmeet29 merged 2 commits intodevelopfrom
DINC0374658/UploadNoSDMRolesBug
Jan 22, 2025
Merged

[DINC0374658]:Error message fix when a user with No SDM Roles uploads an attachment#82
yashmeet29 merged 2 commits intodevelopfrom
DINC0374658/UploadNoSDMRolesBug

Conversation

@yashmeet29
Copy link
Copy Markdown
Collaborator

Currently if a user do not have SDM roles and if they try to upload an attachment, some random error is being thrown. With this PR, we are fixing the error message.

Screenshot 2025-01-20 at 10 01 47 AM


try (Response response = client.newCall(request).execute()) {
if (!response.isSuccessful()) {
if (response.code() == 403) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we have switch case to manintain error messages

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@rashmiangadi11 we just have one if-else block here, so I don't think we need a switch case here.

Copy link
Copy Markdown
Contributor

@PujaDeshmukh17 PujaDeshmukh17 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@yashmeet29 yashmeet29 merged commit 693a3a6 into develop Jan 22, 2025
@yashmeet29 yashmeet29 deleted the DINC0374658/UploadNoSDMRolesBug branch January 22, 2025 08:11
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.

3 participants