Skip to content

Commit e3fbd24

Browse files
fix: wrap data access exception (#16954)
1 parent 947254d commit e3fbd24

File tree

1 file changed

+1
-1
lines changed
  • airbyte-server/src/main/kotlin/io/airbyte/server/apis

1 file changed

+1
-1
lines changed

airbyte-server/src/main/kotlin/io/airbyte/server/apis/ApiHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal fun <T> execute(call: Callable<T>): T? {
4242
)
4343
is OperationNotAllowedException -> throw e
4444
is IOException -> throw RuntimeException(e)
45-
is DataAccessException -> throw ConflictException("Failed to access database. Check the server logs for more information")
45+
is DataAccessException -> throw ConflictException("Failed to access database. Check the server logs for more information", e)
4646
else -> {
4747
logger.error(e) { "Unexpected Exception" }
4848
throw e

0 commit comments

Comments
 (0)