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

Display Error Message When Generator Template Cannot Be Loaded. #2153

Closed
wants to merge 3 commits into from

Conversation

sshaw
Copy link
Contributor

@sshaw sshaw commented Aug 29, 2017

RE: #2152 (not real fix though 😿).

Not sure that the code fixed in 49f296a is even used.

@sshaw
Copy link
Contributor Author

sshaw commented Sep 2, 2017

I've updated this with a fix for the underlying Thor issue.

There are a couple ways to fix this, let me know if you'd prefer a different approach.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
This version of prevents http templates from being
loaded. See rails/thor#576
@ujifgc
Copy link
Member

ujifgc commented Sep 2, 2017

Merged manually with a fix eeab412

@ujifgc ujifgc closed this Sep 2, 2017
@sshaw
Copy link
Contributor Author

sshaw commented Sep 2, 2017

What about the fix for Thor, which is the true fix for #2152?

@ujifgc
Copy link
Member

ujifgc commented Sep 2, 2017

What about it? We use 'open-uri' in

raw_link, _ = *open(template_file).read.scan(/<a\s+href\s?\=\"(.*?)\"\>raw/)
and I fixed it.

@sshaw
Copy link
Contributor Author

sshaw commented Sep 2, 2017

Great!

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.

None yet

2 participants