Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
chriddyp committed Apr 11, 2019
1 parent aed1b94 commit ac7403d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ function triggerDefaultState(dispatch, getState) {

try {
MultiGraph.overallOrder();
} catch(err) {
} catch (err) {
dispatch(
onError({
type: 'backEnd',
error: {
message: 'Circular Dependencies',
html: err.toString(),
}
},
})
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/error/FrontEnd/FrontEndError.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ function ErrorContent({error, type}) {
{!error.stack ? null : (
<div className="dash-fe-error__st">
<div className="dash-fe-error__info_title dash-fe-error__curved-top">
{'JS Stack trace (see browser\'s console for details)'}
{"JS Stack trace (see browser's console for details)"}
</div>
<div className="dash-fe-error__info dash-fe-error__curved-bottom">
<hr/>
<hr />
{error.stack.split('\n').map(line => (
<p>{line}</p>
))}
Expand Down Expand Up @@ -135,7 +135,7 @@ const errorPropTypes = PropTypes.shape({

ErrorContent.propTypes = {
error: errorPropTypes,
type: PropTypes.oneOf(['backEnd', 'frontEnd'])
type: PropTypes.oneOf(['backEnd', 'frontEnd']),
};

FrontEndError.propTypes = {
Expand Down

0 comments on commit ac7403d

Please sign in to comment.