Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9b1cebe authored by Lucas Silva's avatar Lucas Silva
Browse files

Update span error message to be more descriptive

Include the invalid size which was passed in.

Test: N/A
Flag: EXEMPT updating error message string
Bug: 376490959
Change-Id: Ibfa0edcaaef61f15a8c2c64865054f602984a947
parent 4dc14489
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ enum class CommunalContentSize(val span: Int) {
        /** Converts from span to communal content size. */
        fun toSize(span: Int): CommunalContentSize {
            return entries.find { it.span == span }
                ?: throw Exception("Invalid span for communal content size")
                ?: throw IllegalArgumentException("$span is not a valid span size")
        }
    }
}