diff --git a/src/components/loadable.jsx b/src/components/loadable.jsx index 9cb5d4a7..0491a91d 100644 --- a/src/components/loadable.jsx +++ b/src/components/loadable.jsx @@ -1,5 +1,6 @@ import {Component} from 'react'; import {SyncIcon} from 'react-octicons'; +import * as BS from 'react-bootstrap'; const STATUS = { INITIAL: 'initial', @@ -9,18 +10,31 @@ const STATUS = { class Loadable extends Component { static defaultProps = { - renderError: (err) => { + renderError: (err, show, close) => { console.error(err); - // If it is a permissions error then it might be a rate limi + // If it is a permissions error then it might be a rate limit if (err.status === 403) { return ( -
- It looks like either you do not have permission to see this repository or the rate limit for requests to GitHub has been exceeded. This usually happens when you are not logged in to gh-board. Try signing in to continue. -
-{err.message}
- + It looks like either you do not have permission to see this repository or the rate limit for requests to GitHub has been exceeded. This usually happens when you are not logged in to gh-board. Try signing in to continue. +
+
+ {JSON.parse(err.message).message}
+
+ Documentation URL
+
+ + Problem loading. Is it a valid repo? And have you exceeded your number of requests? Usually happens when not logged in because GitHub limits anonymous use of their API. +
+
+ {JSON.parse(err.message).message}
+
+ Documentation URL
+
+