Skip to content

Commit

Permalink
Merge 3e55de5 into ced6729
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0hy0h committed Jul 3, 2018
2 parents ced6729 + 3e55de5 commit 2c601cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/errors/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ export const UnknownDependenciesMessage = (
args[index] = '?';
message += args.join(', ');

message += `). Please verify whether [${index}] argument is available in the current context.`;
message += `). Please make sure that the argument at index [${index}] is available in the current context.`;
return message;
};

export const InvalidMiddlewareMessage = (name: string) =>
`The middleware doesn't provide the 'resolve' method (${name})`;

export const InvalidModuleMessage = (scope: string) =>
`Nest cannot create the module instance. The frequent reason of this exception is the circular dependency between modules. Use forwardRef() to avoid it (read more https://docs.nestjs.com/advanced/circular-dependency). Scope [${scope}]`;
`Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it. (Read more https://docs.nestjs.com/advanced/circular-dependency.) Scope [${scope}]`;

export const UnknownExportMessage = (module: string) =>
`Nest cannot export component/module that is not a part of the currently proccessed module (${module}). Please verify whether each exported unit is available in this particular context.`;
`Nest cannot export a component/module that is not a part of the currently processed module (${module}). Please verify whether each exported unit is available in this particular context.`;

export const INVALID_MIDDLEWARE_CONFIGURATION = `Invalid middleware configuration passed inside the module 'configure()' method.`;
export const UNKNOWN_REQUEST_MAPPING = `Request mapping properties not defined in the @RequestMapping() annotation!`;
export const UNHANDLED_RUNTIME_EXCEPTION = `Unhandled Runtime Exception.`;
export const INVALID_EXCEPTION_FILTER = `Invalid exception filters (@UseFilters()).`;
export const MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION = `Unable to load @nestjs/microservices package (please, make sure whether it's installed already).`;
export const MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION = `Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)`;

0 comments on commit 2c601cf

Please sign in to comment.