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: return metadata logo fetch error #170

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

igorline
Copy link
Contributor

Adds proper error message if operator logo from metadata could not be fetched (404 error for example).

Motivation

Previously if logo could not be fetched user would receive mime type error that only pngs are supported

Solution

Check for http response status and throw self explanatory error

@samlaf samlaf requested a review from shrimalmadhur March 30, 2024 20:37
@shrimalmadhur shrimalmadhur merged commit 6875ce9 into Layr-Labs:master Apr 4, 2024
2 of 3 checks passed
@igorline igorline deleted the feat/logo-fetch-error branch April 4, 2024 18:36
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.

2 participants