Skip to content

Commit

Permalink
Add better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalthaj committed Dec 30, 2018
1 parent 102f271 commit c4156f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ object SafeString {
case _ => q"""${acc}.s($nextElement)"""
}
} else {
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 !")
c.abort(t.tree.pos, "The provided type is neither a string nor a case-class. Consider converting it to strings using <value>.asStr.")
}
}
})
Expand Down

0 comments on commit c4156f1

Please sign in to comment.