From bb36cd1982daf67ed4460dd9e610759516e48174 Mon Sep 17 00:00:00 2001 From: Karl Lum Date: Tue, 12 May 2026 10:49:50 -0700 Subject: [PATCH] Supress stack trace display from error pages (#7654) #### Rationale This PR removes the stack trace from the error page details. In the case where the error type details only consists of a stacktrace (execution), the "Show Details" button won't be rendered. --- .../org/labkey/api/view/template/errorView.jsp | 14 -------------- .../client/ErrorHandler/ErrorHandler.test.tsx | 4 ---- core/src/client/ErrorHandler/ErrorHandler.tsx | 4 ++-- core/src/client/ErrorHandler/ErrorType.tsx | 16 ++++++++++++---- core/src/client/ErrorHandler/model.ts | 1 - 5 files changed, 14 insertions(+), 25 deletions(-) diff --git a/api/src/org/labkey/api/view/template/errorView.jsp b/api/src/org/labkey/api/view/template/errorView.jsp index 04234599107..423ec25f9a0 100644 --- a/api/src/org/labkey/api/view/template/errorView.jsp +++ b/api/src/org/labkey/api/view/template/errorView.jsp @@ -24,19 +24,6 @@
-<% - StringBuilder stackTrace = new StringBuilder(); - if (null != model.getException()) - { - stackTrace.append(model.getException().toString()); - for (StackTraceElement stackTraceElement : model.getException().getStackTrace()) - { - stackTrace.append("\n"); - stackTrace.append(stackTraceElement.toString()); - } - } -%> -