From a014228f7cb7f4a4583ad6a2b032434f4ce2f4fa Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Wed, 21 Nov 2018 06:54:55 +0100 Subject: [PATCH] Output current package name if package name can't be validated We have this of the package name. It only outputs that the current one is bad, not what the current one actually is. Added an output of the current one to the error. --- bin/lib/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index af0d2984..2b5a65ec 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -194,7 +194,7 @@ function validatePackageName (package_name) { var msg = 'Error validating package name. '; if (!/^[a-zA-Z][a-zA-Z0-9_]+(\.[a-zA-Z][a-zA-Z0-9_]*)+$/.test(package_name)) { - return Q.reject(new CordovaError(msg + 'Package name must look like: com.company.Name')); + return Q.reject(new CordovaError(msg + 'Must look like: `com.company.Name`. Currently is: `' + package_name + '`')); } // Class is a reserved word