From 90b790b9b5bb334b15cf03dda473bfa779a0868c Mon Sep 17 00:00:00 2001 From: projectmoon Date: Thu, 5 Jan 2023 00:59:37 +0100 Subject: [PATCH] Fix exception message interpolation --- src/ts/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/index.tsx b/src/ts/index.tsx index ad00c1d..b1bef6a 100644 --- a/src/ts/index.tsx +++ b/src/ts/index.tsx @@ -37,7 +37,7 @@ function displayError(errorDiv: HTMLElement, category: string, ex: Error) { errorMessages.forEach(message => errorDiv.removeChild(message)); //add new message and show the error alert - errorDiv.appendChild(ex.message); + errorDiv.appendChild({ex.message}); if (errorHeading) { errorHeading.innerText = category;