-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): display module's name on
.select(module)
errors
- Loading branch information
1 parent
1e489c7
commit 6bb08b4
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { RuntimeException } from './runtime.exception'; | ||
|
||
export class UnknownModuleException extends RuntimeException { | ||
constructor() { | ||
constructor(moduleName?: string) { | ||
super( | ||
'Nest could not select the given module (it does not exist in current context)', | ||
`Nest could not select the given module (${ | ||
moduleName ? `"${moduleName}"` : 'it' | ||
} does not exist in current context).`, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters