diff --git a/src/main/kotlin/fr/postgresjson/connexion/Paginated.kt b/src/main/kotlin/fr/postgresjson/connexion/Paginated.kt index 12c9dc6..cb6d21f 100644 --- a/src/main/kotlin/fr/postgresjson/connexion/Paginated.kt +++ b/src/main/kotlin/fr/postgresjson/connexion/Paginated.kt @@ -14,7 +14,7 @@ data class Paginated>( init { if (offset < 0) error("offset must be greather or equal than 0") - if (limit < 1) error("limit must be greather than 1") - if (total < 1) error("total must be greather or equal than 0") + if (limit < 1) error("limit must be greather or equal than 1") + if (total < 0) error("total must be greather or equal than 0") } } \ No newline at end of file