Skip to content

Commit

Permalink
fix: stringify favorites error if no message
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Jan 4, 2025
1 parent a4c3a2c commit 2676c71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sections/media-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export class MediaBrowser extends LitElement {
return html`<div class="no-items">No favorites found</div>`;
}
})
.catch((e) => html`<div class="no-items">Failed to fetch list of favorites. ${e}</div>`),
.catch(
(e) =>
html`<div class="no-items">Failed to fetch list of favorites. ${e.message ?? JSON.stringify(e)}</div>`,
),
)}
`;
}
Expand Down

0 comments on commit 2676c71

Please sign in to comment.