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

Display errors in html #2075

Merged
merged 6 commits into from
Apr 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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