diff --git a/blueocean-pipeline-editor/src/main/js/components/Sheets.jsx b/blueocean-pipeline-editor/src/main/js/components/Sheets.jsx
index 30c116aa1a6..ea073c67130 100644
--- a/blueocean-pipeline-editor/src/main/js/components/Sheets.jsx
+++ b/blueocean-pipeline-editor/src/main/js/components/Sheets.jsx
@@ -12,9 +12,9 @@ export class Sheet extends React.Component {
return (
{child.props.onClose &&
-
this.onClose()}>
+ this.onClose()}>
-
+
}
{child.getTitle && child.getTitle() || child.props.title}
diff --git a/blueocean-pipeline-editor/src/main/less/sheets.less b/blueocean-pipeline-editor/src/main/less/sheets.less
index 914e1a9ad20..cdefdb21d05 100644
--- a/blueocean-pipeline-editor/src/main/less/sheets.less
+++ b/blueocean-pipeline-editor/src/main/less/sheets.less
@@ -54,6 +54,7 @@
cursor: pointer;
svg {
+ display: block;
fill: #c3cfd7;
}
diff --git a/blueocean-web/src/main/js/ErrorUtils.js b/blueocean-web/src/main/js/ErrorUtils.js
index 0cdf964e585..1920b822cb1 100644
--- a/blueocean-web/src/main/js/ErrorUtils.js
+++ b/blueocean-web/src/main/js/ErrorUtils.js
@@ -21,8 +21,17 @@ function isFirefox() {
}
function logApplicationError(messageOrEvent) {
- const message = messageOrEvent.error || messageOrEvent;
- console.error('Hnhandled Error: ', message);
+ let message = null;
+
+ if (messageOrEvent.error && messageOrEvent.error.stack) {
+ message = messageOrEvent.error.stack;
+ } else if (messageOrEvent.stack) {
+ message = messageOrEvent.stack;
+ } else {
+ message = messageOrEvent;
+ }
+
+ console.error('Unhandled Error: ' + JSON.stringify(message, null, 4));
if (messageOrEvent.preventDefault) {
messageOrEvent.preventDefault();
@@ -30,13 +39,21 @@ function logApplicationError(messageOrEvent) {
}
function logUnhandledPromiseRejection(errorEvent) {
- const { reason } = errorEvent.detail || errorEvent;
+ let message = null;
+
+ if (errorEvent.detail && errorEvent.detail.reason && errorEvent.detail.reason.stack) {
+ message = errorEvent.detail.reason.stack;
+ } else if (errorEvent.reason && errorEvent.reason.stack) {
+ message = errorEvent.reason.stack;
+ } else {
+ message = errorEvent;
+ }
+
+ console.error('Unhandled Rejection: ' + JSON.stringify(message, null, 4));
- if (reason) {
- console.error('Unhandled Rejection: ', reason);
+ if (errorEvent.preventDefault) {
errorEvent.preventDefault();
}
- // otherwise we'll fall back to the default rejection handler
}
function initializeErrorHandling() {