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

fix: do not print error when space is unknown #95

Merged

Conversation

alanshaw
Copy link
Member

If the space was not known to the service then that's ok, there's just no info to print about it. Don't make it look like something is wrong, just print the space DID since that's all we know.

Also makes the output a bit nicer by adding a "none" when no providers, and aligning the labels centrally:

Without provider:

Screenshot 2023-09-13 at 12 06 08

(Was previously printing Error getting info about did:key:z6Mksjp3Mbe7TnQbYK43NECF7TRuDGZu9xdzeLg379Dw66mF: Space not found.)

With provider:

Screenshot 2023-09-13 at 12 06 15

Note: I chose to address this here and not alter the service because I think it's probably useful to be able to distinguish programmatically between spaces that are known to the service and spaces that are not, however in this instance it's not haha!

Copy link
Contributor

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

🙏

@olizilla olizilla self-requested a review September 13, 2023 15:37
index.js Outdated Show resolved Hide resolved
Alan Shaw and others added 2 commits September 13, 2023 17:01
Co-authored-by: Oli Evans <oli@protocol.ai>
@alanshaw alanshaw merged commit 7f693d8 into main Sep 13, 2023
1 check passed
@alanshaw alanshaw deleted the fix/do-not-print-error-when-space-is-unknown-to-service branch September 13, 2023 16:13
@travis
Copy link
Member

travis commented Sep 13, 2023

this is great - thank you!!

alanshaw pushed a commit that referenced this pull request Sep 13, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.2.1](v4.2.0...v4.2.1)
(2023-09-13)


### Bug Fixes

* do not print error when space is unknown
([#95](#95))
([7f693d8](7f693d8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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