diff --git a/integration/graphql-code-first/e2e/pipes.spec.ts b/integration/graphql-code-first/e2e/pipes.spec.ts index c08c3b1c4..01b13d218 100644 --- a/integration/graphql-code-first/e2e/pipes.spec.ts +++ b/integration/graphql-code-first/e2e/pipes.spec.ts @@ -33,6 +33,7 @@ describe('GraphQL Pipes', () => { code: 'INTERNAL_SERVER_ERROR', exception: { message: 'Bad Request Exception', + name: 'BadRequestException', response: { message: [ 'description must be longer than or equal to 30 characters', diff --git a/packages/common/exceptions/http.exception.ts b/packages/common/exceptions/http.exception.ts index 603d3082f..a3adf5911 100644 --- a/packages/common/exceptions/http.exception.ts +++ b/packages/common/exceptions/http.exception.ts @@ -40,7 +40,7 @@ export class HttpException extends Error { ) { super(); this.initMessage(); - this.setName(); + this.initName(); } public initMessage() { @@ -79,7 +79,7 @@ export class HttpException extends Error { : { statusCode, message: objectOrError, error: description }; } - public setName(): void { + public initName(): void { this.name = this.constructor.name; } } diff --git a/scripts/run-integration.sh b/scripts/run-integration.sh old mode 100644 new mode 100755