Skip to content

Commit

Permalink
revert: revert error message (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janny authored and virkt25 committed Jan 3, 2018
1 parent 4c270df commit 28817d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/context/src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function resolveInjectedArguments(
} else {
throw new Error(
`Cannot resolve injected arguments for function ${name}: ` +
`The arguments[${ix}] is decorated for dependency injection, ` +
`The arguments[${ix}] is not decorated for dependency injection, ` +
`but a value is not supplied`,
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/context/test/acceptance/method-level-bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Context bindings - Injecting dependencies of method', () => {
const instance = await ctx.get(INFO_CONTROLLER);
expect(() => {
invokeMethod(instance, 'greet', ctx);
}).to.throw(/The arguments\[0\] is decorated for dependency injection/);
}).to.throw(/The arguments\[0\] is not decorated for dependency injection/);
});

function createContext() {
Expand Down

0 comments on commit 28817d3

Please sign in to comment.