fix(editor): Show execution error toast also if there is no error stack just message (#9526)
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
[$style.openNDV]: nodeViewDetailsOpened,
|
||||
[$style.show]: showPreview,
|
||||
}"
|
||||
:src="`${rootStore.baseUrl}workflows/demo`"
|
||||
:src="iframeSrc"
|
||||
data-test-id="workflow-preview-iframe"
|
||||
@mouseenter="onMouseEnter"
|
||||
@mouseleave="onMouseLeave"
|
||||
/>
|
||||
@@ -65,6 +66,10 @@ const insideIframe = ref(false);
|
||||
const scrollX = ref(0);
|
||||
const scrollY = ref(0);
|
||||
|
||||
const iframeSrc = computed(() => {
|
||||
return `${window.BASE_PATH ?? '/'}workflows/demo`;
|
||||
});
|
||||
|
||||
const showPreview = computed(() => {
|
||||
return (
|
||||
!props.loading &&
|
||||
|
||||
@@ -1328,7 +1328,10 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
if (!nodeErrorFound && data.data.resultData.error.stack) {
|
||||
if (
|
||||
!nodeErrorFound &&
|
||||
(data.data.resultData.error.stack || data.data.resultData.error.message)
|
||||
) {
|
||||
// Display some more information for now in console to make debugging easier
|
||||
console.error(`Execution ${executionId} error:`);
|
||||
console.error(data.data.resultData.error.stack);
|
||||
|
||||
Reference in New Issue
Block a user