-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reject promise using Error and include error message #80
Conversation
Ping :) |
PR rebased. |
debug(`Executing ${file} ${args == null ? '' : removePassword(args.join(' '))}`) | ||
} | ||
|
||
return new Promise((resolve, reject) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest using the old standard thus having better backward compatibility on node?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both electron-packager and electron-builder require nodejs 4+. So, I think, it is ok to use template strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@develar would you help remove the Node support in in .travis.yml
as well if we're dropping 0.12
and some others? Travis didn't pick up the error because it doesn't run through the actual code but a quick syntax/consistency check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old nodejs version removed, node 7 added.
module.exports.execFileAsync = Promise.promisify(child.execFile) | ||
module.exports.execFileAsync = function (file, args, options) { | ||
if (debug.enabled) { | ||
debug(`Executing ${file} ${args == null ? '' : removePassword(args.join(' '))}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we should call debuglog
here as debug
creates a namespace for logging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, debuglog
must be used here, I will fix it.
@@ -1,2 +1,4 @@ | |||
node_modules | |||
test/work | |||
.idea/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@develar is this necessary in .gitignore
? I'm not sure where it is applied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't mind, I want to add it — it is IDEA/WebStorm project files directory. In case of this project I don't want to add my IDEA project to VCS but want to ignore it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sure 👍 I don't mind having it just in case.
@develar merged. I'll update a few bits of the code regarding this change on |
plist updated to 2.0 — it is safe to do major upgrade