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

Add friendly error message for missing dotfiles #580

Merged
merged 1 commit into from
Dec 11, 2015
Merged

Conversation

samccone
Copy link
Contributor

via #555

fixes #544

R @robdodson

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@chuckh
Copy link
Contributor

chuckh commented Dec 11, 2015

LGTM!

}, []);

if (missingFiles.length) {
throw new Error('Missing Required Files\n' + missingFiles.join('\n'));
Copy link
Contributor

Choose a reason for hiding this comment

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

In gulp land, is the preference to throw or return the error 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.

hmm my through was to throw inside of the task and if we want to pass an error out we can do that in the gulpfile... let me tweak it as see if passing an error explicitly looks nicer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call, it is better

robdodson added a commit that referenced this pull request Dec 11, 2015
Add friendly error message for missing dotfiles
@robdodson robdodson merged commit 48f3b6b into master Dec 11, 2015
@samccone samccone deleted the sjs/file-checks branch December 11, 2015 18:59
@samccone
Copy link
Contributor Author

best

day

ever

thanks a ton @ohanhi 🌵

@ohanhi
Copy link
Contributor

ohanhi commented Dec 13, 2015

This is great! 🎈🎉🎊

Thank you, @samccone!

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

Successfully merging this pull request may close these issues.

TypeError: Cannot convert undefined or null to object in task lint
5 participants