Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Display errors in html (#2075)
Browse files Browse the repository at this point in the history
* Display errors in html

* Prettier
  • Loading branch information
Tom Linton authored and nick committed May 3, 2019
1 parent 17e5db5 commit 15d9d0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dapps/marketplace/src/components/QueryError.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const QueryError = props => {
return (
<div>
<fbt desc="QueryError.seeConsole">Error: See console for details</fbt>
<div>
<div>{props.error}</div>
{props.query && <div>{props.query.loc.source.body}</div>}
{props.vars && <pre>{props.vars}</pre>}
</div>
</div>
)
}
Expand Down

0 comments on commit 15d9d0a

Please sign in to comment.