Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Minors on error #12

Merged
merged 2 commits into from
Jun 13, 2017
Merged

Minors on error #12

merged 2 commits into from
Jun 13, 2017

Conversation

cxa
Copy link
Contributor

@cxa cxa commented Jun 13, 2017

No description provided.

@@ -35,7 +35,7 @@ const runBsbSync = () => {
const getBsbErrorMessages = err => err.match(/File [\s\S]*?:\nError: [\s\S]*?\n/g)

const getCompiledFile = (moduleDir, path, callback) => {
runBsb((err, res) => {
runBsb((err, _, res) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the doc https://nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback shows, callback's parameters are (error, stdout, stderr), we only care the stderr for emitting error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screen shot 2017-06-14 at 00 04 51

As screenshot shows, the BSB check build spec : OK is not error.

@rrdelaney rrdelaney merged commit 4f8eab0 into rrdelaney:master Jun 13, 2017
@rrdelaney
Copy link
Owner

Published as v1.5.2

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

Successfully merging this pull request may close these issues.

2 participants