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

Started refactoring of archetypes templates #131

Merged
merged 4 commits into from
Jan 22, 2014
Merged

Started refactoring of archetypes templates #131

merged 4 commits into from
Jan 22, 2014

Conversation

muuki88
Copy link
Contributor

@muuki88 muuki88 commented Jan 14, 2014

What do you think? I didn't test it yet, just want to structure the code a bit.

*/
def defaultStartScriptTemplate(loader: ServerLoader, defaultLocation: File): URL =
if (defaultLocation.exists) defaultLocation.toURI.toURL
else templateUrl(startScript, loader) get
Copy link
Member

Choose a reason for hiding this comment

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

Should always have getOrElse sys.error("Something useful here") or force downstream error. Since this is very user-facing project, these kinds of "None.get exception" messages can be frustrating (although practically shoudln't happen, murphy's law says it will).

@jsuereth
Copy link
Member

I like the direction of this pull request!

@jsuereth
Copy link
Member

Awesome! I love that travis CI is working here for us too. Thanks for the fixes.

jsuereth added a commit that referenced this pull request Jan 22, 2014
Started refactoring of archetypes templates
@jsuereth jsuereth merged commit d7982dc into sbt:master Jan 22, 2014
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.

2 participants