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) {
|
||||
logger.debug("Missing required 'sortableColumns' config.")
|
||||
throw new ServiceUnavailableException()
|
||||
const message = "Missing required 'sortableColumns' config."
|
||||
logger.debug(message)
|
||||
throw new ServiceUnavailableException(message)
|
||||
}
|
||||
|
||||
if (query.sortBy) {
|
||||
|
Loading…
Reference in New Issue
Block a user