Skip to content

Commit 66c68d2

Browse files
committed
fix(app): Show ORCID general error page for orcid/unknown error route.
Improve text for the error page.
1 parent a0ae008 commit 66c68d2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

packages/openneuro-app/src/scripts/errors/errorRoute.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function ErrorRoute() {
1515
<Routes>
1616
<Route path="github" element={<FourOThreePage />} />
1717
<Route path="orcid" element={<OrcidGeneral />} />
18+
<Route path="orcid/unknown" element={<OrcidGeneral />} />
1819
<Route path="email-warning" element={<OrcidEmailWarning />} />
1920
<Route path="*" element={<FourOFourPage />} />
2021
</Routes>

packages/openneuro-app/src/scripts/errors/orcid/general.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ import React from "react"
33
const OrcidError = () => (
44
<div className="panel-heading">
55
<h2>There was an issue authenticating with your ORCID account.</h2>
6+
<p>
7+
This may be a temporary issue, please try again later. Ensure that your
8+
ORCID profile has one email address available to OpenNeuro following{" "}
9+
<a href="https://docs.openneuro.org/orcid.html#enabling-trusted-access-to-emails">
10+
our documentation
11+
</a>{" "}
12+
and try again.
13+
</p>
14+
<p>
15+
If this issue persists, please contact support and include the ORCID
16+
account you're attempting to login with.
17+
</p>
618
</div>
719
)
820

0 commit comments

Comments
 (0)