]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21351 Show full background task error message
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Wed, 17 Jan 2024 14:25:38 +0000 (15:25 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 18 Jan 2024 20:03:23 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/background-tasks/components/Stacktrace.tsx

index 200744086752e122fbac59935d0767788f51b664..e468dce163a979cea63819b73f112af9a4baca00 100644 (file)
@@ -85,12 +85,12 @@ export default class Stacktrace extends React.PureComponent<Props, State> {
             {stacktrace ? (
               <div>
                 <h4 className="sw-mb-2">{translate('background_tasks.error_stacktrace')}</h4>
-                <pre className="js-task-stacktrace">{stacktrace}</pre>
+                <pre className="it__task-stacktrace sw-whitespace-pre-wrap">{stacktrace}</pre>
               </div>
             ) : (
               <div>
                 <h4 className="sw-mb-2">{translate('background_tasks.error_message')}</h4>
-                <pre className="js-task-error-message">{task.errorMessage}</pre>
+                <pre className="sw-whitespace-pre-wrap">{task.errorMessage}</pre>
               </div>
             )}
           </Spinner>