mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
Properly handle promise in create script (#784)
* Properly handle promise in create script * Add regression test
This commit is contained in:
committed by
GitHub
parent
997943a194
commit
1de7c38134
@@ -272,7 +272,7 @@ exports.create = function (project_path, config, options, events) {
|
||||
// Make the package conform to Java package types
|
||||
return exports.validatePackageName(package_name)
|
||||
.then(function () {
|
||||
exports.validateProjectName(project_name);
|
||||
return exports.validateProjectName(project_name);
|
||||
}).then(function () {
|
||||
// Log the given values for the project
|
||||
events.emit('log', 'Creating Cordova project for the Android platform:');
|
||||
|
||||
Reference in New Issue
Block a user