From 9c0d797582e2845d407dd718153876a34aca9f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Mon, 1 Aug 2022 12:08:08 +0200 Subject: [PATCH] fixed an error display glitch --- HISTORY.md | 1 + src/threads.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index daa92392..f77551be 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -67,6 +67,7 @@ * blocks, objects, store: include a representation of the stage as sprite in the "scripts pic" export if it is more than a single one * removed some "under construction" markers * new release candidate version +* threads: fixed an error display glitch ### 2022-07-31 * threads: fixed #3085 (I hope ^^) diff --git a/src/threads.js b/src/threads.js index 0a0ac007..538e61af 100644 --- a/src/threads.js +++ b/src/threads.js @@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition*/ /*jshint esversion: 11, bitwise: false, evil: true*/ -modules.threads = '2022-July-31'; +modules.threads = '2022-August-01'; var ThreadManager; var Process; @@ -1242,7 +1242,7 @@ Process.prototype.errorBubble = function (error, element) { if (errorIsNested && error.cause !== 'user') { if (blockToShow.selector === 'reportGetVar') { // if I am a single variable, show my caller in the output. - blockToShow = blockToShow.parent; + blockToShow = blockToShow.parent || blockToShow; } errorMorph.children[0].text += `\n${localize('The question came up at')}`; errorMorph.children[0].fixLayout();