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:
@@ -0,0 +1,5 @@
|
||||
export class JsonFormattedError extends Error {
|
||||
constructor(jsonObject: any) {
|
||||
super(JSON.stringify(jsonObject, null, 2))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user