Fix exception message interpolation
This commit is contained in:
parent
d3ded054ce
commit
90b790b9b5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue