Skip to content

Commit

Permalink
Add missing space in error messages (#9909)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnavarrc authored and nicolo-ribaudo committed Apr 29, 2019
1 parent 555d50a commit 16e17c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/babel-core/src/config/full.js
Expand Up @@ -202,7 +202,7 @@ const loadDescriptor = makeWeakCache(
if (typeof item.then === "function") {
throw new Error(
`You appear to be using an async plugin, ` +
`which your current version of Babel does not support.` +
`which your current version of Babel does not support. ` +
`If you're using a published plugin, ` +
`you may need to upgrade your @babel/core version.`,
);
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-core/src/transformation/index.js
Expand Up @@ -93,7 +93,7 @@ function transformFile(file: File, pluginPasses: PluginPasses): void {
if (isThenable(result)) {
throw new Error(
`You appear to be using an plugin with an async .pre, ` +
`which your current version of Babel does not support.` +
`which your current version of Babel does not support. ` +
`If you're using a published plugin, you may need to upgrade ` +
`your @babel/core version.`,
);
Expand All @@ -117,7 +117,7 @@ function transformFile(file: File, pluginPasses: PluginPasses): void {
if (isThenable(result)) {
throw new Error(
`You appear to be using an plugin with an async .post, ` +
`which your current version of Babel does not support.` +
`which your current version of Babel does not support. ` +
`If you're using a published plugin, you may need to upgrade ` +
`your @babel/core version.`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/path/context.js
Expand Up @@ -31,7 +31,7 @@ export function _call(fns?: Array<Function>): boolean {
if (ret && typeof ret === "object" && typeof ret.then === "function") {
throw new Error(
`You appear to be using a plugin with an async traversal visitor, ` +
`which your current version of Babel does not support.` +
`which your current version of Babel does not support. ` +
`If you're using a published plugin, you may need to upgrade ` +
`your @babel/core version.`,
);
Expand Down

0 comments on commit 16e17c5

Please sign in to comment.