Skip to content

Commit

Permalink
feat: add circular dependency error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcherGu committed Mar 9, 2023
1 parent f6992eb commit 4974545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export async function createEinf({ window, controllers, injects = [] }: Options)
return winOpt.win
}
else {
throw new Error(`${constructClass.name}'s parameter [${index}] is not injectable`)
throw new Error(`${constructClass.name}'s parameter [${index}] is not injectable or is a circular dependency`)
}
})
}
Expand Down

0 comments on commit 4974545

Please sign in to comment.