diff --git a/docs/Tutorial/Best-Practices.md b/docs/Tutorial/Best-Practices.md index bc888b5..0fe8e84 100644 --- a/docs/Tutorial/Best-Practices.md +++ b/docs/Tutorial/Best-Practices.md @@ -94,7 +94,7 @@ But on an event handler or other root-level scope, always catch! Why?! Because y ```javascript somePromiseReturningFunc().catch((error) => { - $('#appErrorLabel').text(error); + document.getElementById('appErrorLabel').innerText = error.toString(); console.error(error + ''); }); ```