Skip to content

Commit

Permalink
Don't break the error message onto several lines
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 8, 2024
1 parent e702797 commit 5c4d453
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/wisteria.VariantError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ object VariantError:

case class VariantError(inputLabel: Text, sum: Text, validVariants: List[Text])(using Diagnostics)
extends Error
(m"""the specified variant ($inputLabel) is not one of the valid variants
(${validVariants.mkString(", ").tt}) of sum type $sum""")
(m"""the specified variant ($inputLabel) is not one of the valid variants (${validVariants.mkString(", ").tt}) of sum type $sum""")

0 comments on commit 5c4d453

Please sign in to comment.