Skip to content
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

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

develar
Copy link
Contributor

@develar develar commented Sep 13, 2016

plist updated to 2.0 — it is safe to do major upgrade

@develar
Copy link
Contributor Author

develar commented Oct 19, 2016

Ping :)

@develar
Copy link
Contributor Author

develar commented Nov 4, 2016

PR rebased.

debug(`Executing ${file} ${args == null ? '' : removePassword(args.join(' '))}`)
}

return new Promise((resolve, reject) => {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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(' '))}`)
Copy link
Contributor

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.

Copy link
Contributor Author

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/
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@sethlu sethlu merged commit cd4c796 into electron:master Nov 14, 2016
@sethlu
Copy link
Contributor

sethlu commented Nov 14, 2016

@develar merged. I'll update a few bits of the code regarding this change on util.execFileAsync later before a next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants