Skip to content

Commit c4156f1

Browse files
committed
Add better error messages
1 parent 102f271 commit c4156f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/src/main/scala/com/thaj/safe/string/interpolator/SafeString.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ object SafeString {
7575
case _ => q"""${acc}.s($nextElement)"""
7676
}
7777
} else {
78-
c.abort(t.tree.pos, "The provided type isn't a string nor it's a case class, or you might have tried a `toString` on non-strings !")
78+
c.abort(t.tree.pos, "The provided type is neither a string nor a case-class. Consider converting it to strings using <value>.asStr.")
7979
}
8080
}
8181
})

0 commit comments

Comments
 (0)