(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol. margin.at
extension web atproto comments
98
fork

Configure Feed

Select the types of activity you want to include in your feed.

display error message on request failure (#55)

authored by

Scan and committed by
GitHub
ced33da7 0fd053d8

+8 -2
+8 -2
extension/src/components/sidepanel/App.tsx
··· 310 310 setTags([]); 311 311 loadAnnotations(); 312 312 } else { 313 - alert('Failed to post annotation'); 313 + const errorMessage = result.error 314 + ? `Failed to post annotation: ${result.error}` 315 + : 'Failed to post annotation'; 316 + alert(errorMessage); 314 317 } 315 318 } catch (error) { 316 319 console.error('Post error:', error); ··· 333 336 setBookmarkTags([]); 334 337 setShowBookmarkTags(false); 335 338 } else { 336 - alert('Failed to bookmark page'); 339 + const errorMessage = result.error 340 + ? `Failed to bookmark page: ${result.error}` 341 + : 'Failed to bookmark page'; 342 + alert(errorMessage); 337 343 } 338 344 } catch (error) { 339 345 console.error('Bookmark error:', error);