feat: Show detailed connection errors in collapsible section
This commit is contained in:
@@ -80,7 +80,12 @@ function Feed({ updateCache }) {
|
||||
<title>QotNews</title>
|
||||
<meta name="robots" content="index" />
|
||||
</Helmet>
|
||||
{error && <p>Connection error?</p>}
|
||||
{error &&
|
||||
<details>
|
||||
<summary>Connection error? Click to expand.</summary>
|
||||
<p>{error}</p>
|
||||
</details>
|
||||
}
|
||||
{stories ?
|
||||
<div>
|
||||
{stories.map(x =>
|
||||
|
||||
Reference in New Issue
Block a user