Skip to content

Commit

Permalink
Add quotes to the imported text to differentiate from the rest of the…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
NullVoxPopuli committed Dec 28, 2021
1 parent 4ca6ac2 commit e5fe64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-auto-import/ts/splitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class Splitter {

if (!target) {
throw new Error(
`ember-auto-import is unable to handle ${leadingQuasi}. ` +
`ember-auto-import is unable to handle '${leadingQuasi}'. ` +
`The attempted import of '${imp.cookedQuasis.join('')}' is located in ${imp.path}`
);
}
Expand All @@ -138,7 +138,7 @@ export default class Splitter {

if (target.type === 'imprecise') {
throw new Error(
`Dynamic imports must target unambiguous package names. ${leadingQuasi} is ambiguous. ` +
`Dynamic imports must target unambiguous package names. '${leadingQuasi}' is ambiguous. ` +
`The attempted import of '${imp.cookedQuasis.join('')}' is located in ${imp.path}`
);
}
Expand Down

0 comments on commit e5fe64b

Please sign in to comment.