Skip to content

Commit

Permalink
feat: remove promise rejection errors from being displayed
Browse files Browse the repository at this point in the history
Those are mainly for the developer and don't provide any advantage for the user
  • Loading branch information
Slartibartfass2 committed Jan 22, 2025
1 parent 3ea2a68 commit a4ba269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Usage:
</div>
{:then}
<ToggleableInput isEditable={areDetailsInEditMode} {value} />
{:catch error}
<span class="pt-2 text-error">Couldn't load {key}{error ? `: ${error}` : ""}</span>
{:catch}
<span class="pt-2 text-error">Couldn't load {key}</span>
{/await}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ Usage:
maxHeightActionProps={{ showButtonBar, showAdditionalInfos }}
value={paper.abstrakt}
/>
{:catch error}
<span class="text-error">Couldn't load abstract{error ? `: ${error}` : ""}</span>
{:catch}
<span class="text-error">Couldn't load Abstract</span>
{/await}
</section>
</PaperCardContent>
Expand Down

0 comments on commit a4ba269

Please sign in to comment.