Add missing space in error messages (#9909)

This commit is contained in:
Pablo Navarro 2019-04-29 10:52:13 -07:00 committed by Nicolò Ribaudo
parent 555d50a08c
commit 16e17c560b
3 changed files with 4 additions and 4 deletions

View File

@ -202,7 +202,7 @@ const loadDescriptor = makeWeakCache(
if (typeof item.then === "function") { if (typeof item.then === "function") {
throw new Error( throw new Error(
`You appear to be using an async plugin, ` + `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, ` + `If you're using a published plugin, ` +
`you may need to upgrade your @babel/core version.`, `you may need to upgrade your @babel/core version.`,
); );

View File

@ -93,7 +93,7 @@ function transformFile(file: File, pluginPasses: PluginPasses): void {
if (isThenable(result)) { if (isThenable(result)) {
throw new Error( throw new Error(
`You appear to be using an plugin with an async .pre, ` + `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 ` + `If you're using a published plugin, you may need to upgrade ` +
`your @babel/core version.`, `your @babel/core version.`,
); );
@ -117,7 +117,7 @@ function transformFile(file: File, pluginPasses: PluginPasses): void {
if (isThenable(result)) { if (isThenable(result)) {
throw new Error( throw new Error(
`You appear to be using an plugin with an async .post, ` + `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 ` + `If you're using a published plugin, you may need to upgrade ` +
`your @babel/core version.`, `your @babel/core version.`,
); );

View File

@ -31,7 +31,7 @@ export function _call(fns?: Array<Function>): boolean {
if (ret && typeof ret === "object" && typeof ret.then === "function") { if (ret && typeof ret === "object" && typeof ret.then === "function") {
throw new Error( throw new Error(
`You appear to be using a plugin with an async traversal visitor, ` + `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 ` + `If you're using a published plugin, you may need to upgrade ` +
`your @babel/core version.`, `your @babel/core version.`,
); );