refactor: add message to named exception (#591)
This commit is contained in:
parent
9e7044c32c
commit
4d20b28070
@ -159,8 +159,9 @@ export async function paginate<T extends ObjectLiteral>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (config.sortableColumns.length < 1) {
|
if (config.sortableColumns.length < 1) {
|
||||||
logger.debug("Missing required 'sortableColumns' config.")
|
const message = "Missing required 'sortableColumns' config."
|
||||||
throw new ServiceUnavailableException()
|
logger.debug(message)
|
||||||
|
throw new ServiceUnavailableException(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.sortBy) {
|
if (query.sortBy) {
|
||||||
|
Loading…
Reference in New Issue
Block a user