Permalink
Browse files

Added possible cause to shape implictNotFound error

Stumbled upon issue #1127, which ended up pointing to the correct solution. Figured that adding this to the error message could save someone else from headache.
  • Loading branch information...
1 parent 35ae26e commit b9e8730cf42d3bfb2e8c35e0a1550cdebb9e1b60 @Ophirr33 Ophirr33 committed on GitHub Aug 9, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 slick/src/main/scala/slick/lifted/Shape.scala
@@ -23,7 +23,7 @@ import scala.reflect.ClassTag
* - Packed: (Column[Int], Column[(Int, String)], (Column[Int], Column[Option[Double]]))
* - Linearized: (Int, Int, String, Int, Option[Double])
*/
-@implicitNotFound(msg = "No matching Shape found.\nSlick does not know how to map the given types.\nPossible causes: T in Table[T] does not match your * projection. Or you use an unsupported type in a Query (e.g. scala List).\n Required level: ${Level}\n Source type: ${Mixed_}\n Unpacked type: ${Unpacked_}\n Packed type: ${Packed_}\n")
+@implicitNotFound(msg = "No matching Shape found.\nSlick does not know how to map the given types.\nPossible causes: T in Table[T] does not match your * projection,\n you use an unsupported type in a Query (e.g. scala List),\n or you forgot to import a driver api into scope.\n Required level: ${Level}\n Source type: ${Mixed_}\n Unpacked type: ${Unpacked_}\n Packed type: ${Packed_}\n")
abstract class Shape[Level <: ShapeLevel, -Mixed_, Unpacked_, Packed_] {
type Mixed = Mixed_ @uncheckedVariance
type Unpacked = Unpacked_

0 comments on commit b9e8730

Please sign in to comment.