mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Change name to not collide with duplicate definition in RpcException
This commit is contained in:
@@ -31,7 +31,7 @@ export class HttpException extends Error {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
private getError(target) {
|
||||
private getErrorString(target) {
|
||||
if(typeof target === 'string') {
|
||||
return target;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ export class HttpException extends Error {
|
||||
}
|
||||
|
||||
public toString(): string {
|
||||
const message = this.getError(this.message);
|
||||
const message = this.getErrorString(this.message);
|
||||
|
||||
return `Error: ${message}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user