Skip to content

Commit 2cf89b3

Browse files
committed
stringify json in string
1 parent 1e13e99 commit 2cf89b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/deno/src/exception.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export class {{ spec.title | caseUcfirst}}Exception {
1010
}
1111

1212
public toString(): String {
13-
return `${this.message} - ${this.code} - ${this.response}`;
13+
return `${this.message} - ${this.code} - ${JSON.stringify(this.response)}`;
1414
}
1515
}

0 commit comments

Comments
 (0)