mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Merge branch '6.6.0' into feat/resolve-scoped-classes
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { RuntimeException } from './runtime.exception';
|
||||
|
||||
export class UnknownElementException extends RuntimeException {
|
||||
constructor() {
|
||||
constructor(name?: string) {
|
||||
super(
|
||||
'Nest could not find the given element (this class does not exist in the current context)',
|
||||
`Nest could not find ${name || 'given'} element (this provider does not exist in the current context)`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user