clean code

This commit is contained in:
2023-04-07 01:23:30 +02:00
parent f8f3273f18
commit c268efb44f
2 changed files with 78 additions and 19 deletions

View File

@@ -227,10 +227,11 @@ class Connection(
} catch (e: Throwable) {
logger?.info(
"""
Query Error:
${sql.prependIndent()},
${values.joinToString(", ").prependIndent()}
""".trimIndent(),
|Query Error:
|${sql},
|Arguments (${values.length}):
|${values.joinToString(", ").ifBlank { "No arguments" }.prependIndent()}
""".trimMargin().prependIndent(" > "),
e
)
throw e