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

feat(): removed panicking code #293

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Christiantyemele
Copy link
Collaborator

No description provided.

storage/did.json Outdated Show resolved Hide resolved
storage/oob_invitation.txt Outdated Show resolved Hide resolved
storage/qrcode.txt Outdated Show resolved Hide resolved
Comment on lines 123 to 124
error!("Failed to unpack message: {}", err.kind());
let response = (StatusCode::BAD_REQUEST, Error::UnpackingError.json());
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should find a better way to handle the kinds of errors that can happen here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i think its better this way

Copy link
Collaborator

Choose a reason for hiding this comment

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

The error kind doesn’t provide sufficient information about the error. We also need additional context to fully understand the error. That’s why a complete error backtrace is necessary.

I need to investigate further to determine why the code panics at this level, as it doesn’t seem to be normal.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm interested in knowing the result of @Hermann-Core's investigation. Please consider his final approval as mine on this PR.

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.

Handle mediator responses and panics in the mediator
3 participants