Show graphql error message (#1852)

Co-authored-by: StephaneBischoffSSENSE <stephane.bischoff@ssense.com>
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Stephane
2021-10-03 22:31:47 -04:00
committed by GitHub
parent 2ab1d3dbfa
commit 06161bc963
4 changed files with 38 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
export class JsonFormattedError extends Error {
constructor(jsonObject: any) {
super(JSON.stringify(jsonObject, null, 2))
}
}