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

chore: waku_keystore: give some more context in case of error #3064

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

Ivansete-status
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Sep 27, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3064

Built from 2583976

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

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

Thank you, I hope it will help our node-help channel.
If these messages are for the masses I would reformat them. Left some comments on this.

return err(
AppKeystoreError(
kind: KeystoreJsonError,
msg: "error in conversion_utils decode: " & getCurrentExceptionMsg(),
Copy link
Contributor

Choose a reason for hiding this comment

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

If it will be for the public ... like logs for our node-runners I would rather formalize like:
error during decoding credentials:

err(
AppKeystoreError(
kind: KeystoreOsError,
msg: "error in createAppKeystore: " & getCurrentExceptionMsg(),
Copy link
Contributor

Choose a reason for hiding this comment

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

If it will be for the public ... like logs for our node-runners I would rather formalize like:
error while writing keystore:

return err(
AppKeystoreError(
kind: KeystoreJsonError,
msg: "error in loadAppKeystore: " & getCurrentExceptionMsg(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly:
error during loading keystore:

@Ivansete-status Ivansete-status merged commit 3ad613c into master Oct 2, 2024
9 of 11 checks passed
@Ivansete-status Ivansete-status deleted the simple-more-feedback-error branch October 2, 2024 22:05
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.

5 participants