Change name to not collide with duplicate definition in RpcException

This commit is contained in:
Chris Sidell
2019-07-03 18:22:08 -07:00
parent 724ddd8d23
commit 40cd722eaf

View File

@@ -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}`;
}