style(microservices): wrap error message params in quotation marks

This commit is contained in:
Kamil Myśliwiec
2022-09-19 15:00:53 +02:00
parent 68e6d44fcd
commit a0767491a1
4 changed files with 4 additions and 4 deletions

View File

@@ -2,6 +2,6 @@ import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.excepti
export class InvalidGrpcPackageException extends RuntimeException {
constructor(name: string) {
super(`The invalid gRPC package (package ${name} not found)`);
super(`The invalid gRPC package (package "${name}" not found)`);
}
}

View File

@@ -2,6 +2,6 @@ import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.excepti
export class InvalidGrpcServiceException extends RuntimeException {
constructor(name: string) {
super(`The invalid gRPC service (service ${name} not found)`);
super(`The invalid gRPC service (service "${name}" not found)`);
}
}

View File

@@ -2,6 +2,6 @@ import { RuntimeException } from '@nestjs/core/errors/exceptions/runtime.excepti
export class InvalidProtoDefinitionException extends RuntimeException {
constructor(path: string) {
super(`The invalid .proto definition (file at ${path} not found)`);
super(`The invalid .proto definition (file at "${path}" not found)`);
}
}

View File

@@ -14,10 +14,10 @@ import { GrpcMethodStreamingType } from '../decorators';
import { Transport } from '../enums';
import { InvalidGrpcPackageException } from '../errors/invalid-grpc-package.exception';
import { InvalidProtoDefinitionException } from '../errors/invalid-proto-definition.exception';
import { ChannelOptions } from '../external/grpc-options.interface';
import { CustomTransportStrategy, MessageHandler } from '../interfaces';
import { GrpcOptions } from '../interfaces/microservice-configuration.interface';
import { Server } from './server';
import { ChannelOptions } from '../external/grpc-options.interface';
let grpcPackage: any = {};
let grpcProtoLoaderPackage: any = {};