Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
Ophirr33 committed Aug 9, 2016
1 parent 35ae26e commit b9e8730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick/src/main/scala/slick/lifted/Shape.scala
Expand Up @@ -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_
Expand Down

0 comments on commit b9e8730

Please sign in to comment.