Skip to content

Commit 3e55de5

Browse files
author
Y0hy0h
authored
refactor(core) rephrase error messages
Fixes typo, clarifies what actions are expected.
1 parent ced6729 commit 3e55de5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/core/errors/messages.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ export const UnknownDependenciesMessage = (
1010
args[index] = '?';
1111
message += args.join(', ');
1212

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

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

2020
export const InvalidModuleMessage = (scope: string) =>
21-
`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}]`;
21+
`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}]`;
2222

2323
export const UnknownExportMessage = (module: string) =>
24-
`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.`;
24+
`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.`;
2525

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

0 commit comments

Comments
 (0)