Fix exception message interpolation

This commit is contained in:
projectmoon 2023-01-05 00:59:37 +01:00
parent d3ded054ce
commit 90b790b9b5
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function displayError(errorDiv: HTMLElement, category: string, ex: Error) {
errorMessages.forEach(message => errorDiv.removeChild(message)); errorMessages.forEach(message => errorDiv.removeChild(message));
//add new message and show the error alert //add new message and show the error alert
errorDiv.appendChild(<span>ex.message</span>); errorDiv.appendChild(<span>{ex.message}</span>);
if (errorHeading) { if (errorHeading) {
errorHeading.innerText = category; errorHeading.innerText = category;