Skip to content

Commit

Permalink
fix: Uppercase for errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Malton <[email protected]>
  • Loading branch information
Nokel81 committed Mar 14, 2022
1 parent 4bbbe28 commit 8b48b69
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,13 @@ const autoRegisterInjectables = ({ getRequireContextForInjectables, di }) => {

if (!injectable) {
throw new Error(
`tried to register injectable from ${key}, but no default export`,
`Tried to register injectable from ${key}, but no default export`,
);
}

if (!verifyInjectable(injectable)) {
throw new Error(
`tried to register injectable from ${key}, but default export is of wrong shape`,
`Tried to register injectable from ${key}, but default export is of wrong shape`,
);
}

Expand Down Expand Up @@ -469,8 +469,7 @@ const checkForTooManyMatches = (injectables, alias) => {

if (relatedInjectables.length > 1) {
throw new Error(
`Tried to inject single injectable for injection token "${
alias.id
`Tried to inject single injectable for injection token "${alias.id
}" but found multiple injectables: "${relatedInjectables
.map(relatedInjectable => relatedInjectable.id)
.join('", "')}"`,
Expand Down

0 comments on commit 8b48b69

Please sign in to comment.