Permalink
Browse files

Throw exception on non boolean argument to ignoreInvalidDefaults

Change-Id: I8818fe9505397e933cd7869fd72c951ef769fcc9
  • Loading branch information...
1 parent 8fe849e commit ef67153954af32959b8885641c26a54662ec8b75 @Falmarri Falmarri committed Nov 9, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 slick-codegen/src/main/scala/slick/codegen/SourceCodeGenerator.scala
@@ -95,7 +95,7 @@ object SourceCodeGenerator {
case profile :: jdbcDriver :: url :: outputDir :: pkg :: user :: password :: Nil =>
run(profile, jdbcDriver, url, outputDir, pkg, Some(user), Some(password), false)
case profile:: jdbcDriver :: url :: outputDir :: pkg :: user :: password :: ignoreInvalidDefaults :: Nil =>
- run(profile, jdbcDriver, url, outputDir, pkg, Some(user), Some(password), Try(ignoreInvalidDefaults.toBoolean).getOrElse(false))
+ run(profile, jdbcDriver, url, outputDir, pkg, Some(user), Some(password), ignoreInvalidDefaults.toBoolean)
case _ => {
println("""
|Usage:

0 comments on commit ef67153

Please sign in to comment.