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

Commit 6f38d94c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update span error message to be more descriptive" into main

parents 34c3859e d9b1cebe
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")
        }
    }
}