diff --git a/dms-infrastructure/src/main/kotlin/team/aliens/dms/global/filter/ExceptionFilter.kt b/dms-infrastructure/src/main/kotlin/team/aliens/dms/global/filter/ExceptionFilter.kt index b745717ed..b72b94974 100644 --- a/dms-infrastructure/src/main/kotlin/team/aliens/dms/global/filter/ExceptionFilter.kt +++ b/dms-infrastructure/src/main/kotlin/team/aliens/dms/global/filter/ExceptionFilter.kt @@ -25,9 +25,11 @@ class ExceptionFilter( try { filterChain.doFilter(request, response) } catch (e: DmsException) { + e.printStackTrace() errorToJson(e.errorProperty, response) Sentry.captureException(e) } catch (e: Exception) { + e.printStackTrace() when (e.cause) { is DmsException -> { errorToJson((e.cause as DmsException).errorProperty, response)