From 9e821efa0f1232e48f86d9ece341f2f5f41eabc9 Mon Sep 17 00:00:00 2001 From: Mike Dawson Date: Sun, 26 May 2024 15:57:23 +0400 Subject: [PATCH] Update validation processor error output to include exception message. --- build.gradle | 2 +- .../lib/annotationprocessor/core/DoorValidatorProcessor.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index cc3b60b0..08fec37c 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ plugins { group 'com.github.UstadMobile.door' -version '0.78' +version '0.79' ext.localProperties = new Properties() diff --git a/door-compiler/src/main/kotlin/com/ustadmobile/lib/annotationprocessor/core/DoorValidatorProcessor.kt b/door-compiler/src/main/kotlin/com/ustadmobile/lib/annotationprocessor/core/DoorValidatorProcessor.kt index 6a30f7a7..6735dfd2 100644 --- a/door-compiler/src/main/kotlin/com/ustadmobile/lib/annotationprocessor/core/DoorValidatorProcessor.kt +++ b/door-compiler/src/main/kotlin/com/ustadmobile/lib/annotationprocessor/core/DoorValidatorProcessor.kt @@ -471,8 +471,9 @@ class DoorValidatorProcessor( } }catch(e: Exception) { logger.error( - "Error running query for DAO function \nquery='$query'," + - "\nran='$queryWithQuestionPlaceholders'\n ", + "Error running query for DAO function: ${e.message ?: ""}\n" + + "Query='$query',\n" + + "\nRan='$queryWithQuestionPlaceholders'\n ", queryFunDecl ) if(e !is SQLException) {