Skip to content

Commit

Permalink
Fix issue where error message would not print directive name properly (
Browse files Browse the repository at this point in the history
…alpinejs#3572)

* Fix issue where error message would not print directive name properly

* Fix bind specs
  • Loading branch information
mattvague authored Jan 21, 2024
1 parent 650de45 commit 97ebbad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/alpinejs/src/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ export function directive(name, callback) {
return {
before(directive) {
if (!directiveHandlers[directive]) {
console.warn(
"Cannot find directive `${directive}`. "
+ "`${name}` will use the default order of execution"
);
console.warn(String.raw`Cannot find directive \`${directive}\`. \`${name}\` will use the default order of execution`);
return;
}
const pos = directiveOrder.indexOf(directive);
Expand Down

0 comments on commit 97ebbad

Please sign in to comment.