mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
style(microservices): wrap error message params in quotation marks
This commit is contained in:
@@ -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)`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user