Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] fix core: token naming + container.get chain path #302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

y-moufakkr
Copy link
Collaborator

@y-moufakkr y-moufakkr commented Jun 6, 2022

  • tests
  • infinite chain possibility? (self-referencing error, infinite loop error and show path)
  • descriptive exception with chain path.

closes #294

a

fix core: add services not found chain to the err object
}
} catch (e) {
const key = (id as any).name ? (id as any).name : id;
e.ServiceNotFoundErrorChain = e.ServiceNotFoundErrorChain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to do here something like a push to chain, and leave 'rendering' at the end level not at the 'construct' level. We should also have tests in place to ensure chain path is ok.

@theodorDiaconu theodorDiaconu changed the title [R]fix core: token naming + container.get chain path [WIP] fix core: token naming + container.get chain path Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core: handle errors on container.get
2 participants