Skip to content

Commit 1062bc7

Browse files
committed
create default for token if undefined
1 parent 92325cf commit 1062bc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/core/errors/messages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ Scope [${scope}]
9090
`;
9191

9292
export const UNKNOWN_EXPORT_MESSAGE = (
93-
token: string,
93+
token: string = 'item',
9494
module: string,
9595
) => {
9696
return `
9797
Nest cannot export a provider/module that is not a part of the currently processed module (${module}).
98-
Please verify whether the exported "${token}" is available in this particular context.
98+
Please verify whether the exported ${token} is available in this particular context.
9999
100100
Possible Solutions:
101-
- Is "${token}" part of the relevant providers/imports within ${module}?
101+
- Is ${token} part of the relevant providers/imports within ${module}?
102102
`;
103103
};
104104

0 commit comments

Comments
 (0)