Skip to content

Commit

Permalink
board.jsx: Make error message user friendly
Browse files Browse the repository at this point in the history
Closes coala#127
  • Loading branch information
123vivekr committed Feb 12, 2019
1 parent be6a23b commit aa72355
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/components/board.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ class Board extends Component {
return (
<span>
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.
{err.message}
{JSON.stringify(err)}
</span>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/loadable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class Loadable extends Component {
);
}
}
};
};

state = {status: STATUS.INITIAL, value: null, show: false};
tate = {status: STATUS.INITIAL, value: null, show: false};

componentDidMount() {
const {promise} = this.props;
Expand All @@ -63,7 +63,7 @@ class Loadable extends Component {
}

onResolve = (value) => {
// TODO: Find out why this is being called multiple times
// TODO: Find out why this is being called multiple times
this.setState({status: STATUS.RESOLVED, value: value});
};

Expand Down

0 comments on commit aa72355

Please sign in to comment.