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

Add errors with explanation for the removed options warn and pathToMake #75

Merged
merged 2 commits into from
Aug 29, 2018

Conversation

razzeee
Copy link
Contributor

@razzeee razzeee commented Aug 28, 2018

This should report helpful errors when using the warn or pathToMake option.

I tried to test it, but still get this error:

image

@razzeee
Copy link
Contributor Author

razzeee commented Aug 28, 2018

Found the problem will add another commit soon

index.js Outdated
@@ -75,8 +75,10 @@ function compilerErrorToString(err, pathToElm) {
default:
return ("Error attempting to run Elm compiler \"" + pathToElm + "\":\n" + err);
}
} else if ((typeof err === "object") && (typeof err.message === "string")) {
return (JSON.stringify(err.message));
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need for () around JSON.stringify(err.message) here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

index.js Outdated
} else {
return ("Exception thrown when attempting to run Elm compiler " + JSON.stringify(pathToElm) + ":\n");
return ("Exception thrown when attempting to run Elm compiler " + JSON.stringify(pathToElm));
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@razzeee razzeee force-pushed the report-missing-deprecated-params branch from b6c187a to 46008dd Compare August 28, 2018 23:49
@rtfeldman
Copy link
Owner

Love it, thank you @razzeee!

@rtfeldman rtfeldman merged commit e7b2f31 into rtfeldman:master Aug 29, 2018
@rtfeldman
Copy link
Owner

Published as 5.0.1.

@razzeee razzeee deleted the report-missing-deprecated-params branch August 29, 2018 07:16
@razzeee
Copy link
Contributor Author

razzeee commented Aug 29, 2018

Thanks for the quick feedback loop :)

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

Successfully merging this pull request may close these issues.

3 participants