From 15d9d0ae9626f05034ddc36540b7f07d8a7e739e Mon Sep 17 00:00:00 2001 From: Tom Linton Date: Fri, 19 Apr 2019 18:15:41 +1200 Subject: [PATCH] Display errors in html (#2075) * Display errors in html * Prettier --- dapps/marketplace/src/components/QueryError.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dapps/marketplace/src/components/QueryError.js b/dapps/marketplace/src/components/QueryError.js index eb0caefb6693..467a05c4d188 100644 --- a/dapps/marketplace/src/components/QueryError.js +++ b/dapps/marketplace/src/components/QueryError.js @@ -14,6 +14,11 @@ const QueryError = props => { return (
Error: See console for details +
+
{props.error}
+ {props.query &&
{props.query.loc.source.body}
} + {props.vars &&
{props.vars}
} +
) }