Fix bug in console warning when not overwritting an existing executable

This commit is contained in:
Jia Hao 2016-01-26 00:37:00 +08:00
parent d74c368627
commit 56b7abacf8
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ function buildApp(options, callback) {
(appPathArray, callback) => {
// somehow appPathArray is a 1 element array
if (appPathArray.length !== 1) {
console.warn('Warning: Packaged app path contains more than one element', appPathArray);
if (appPathArray.length > 1) {
console.warn('Warning: Packaged app path contains more than one element:', appPathArray);
}
const appPath = appPathArray[0];
callback(null, appPath);