diff --git a/static/js/BLE.js b/static/js/BLE.js index 2f580e2..e5f7a32 100644 --- a/static/js/BLE.js +++ b/static/js/BLE.js @@ -115,5 +115,7 @@ function revsToRPM(prevRes, res) { btn.addEventListener("click", () => connect({ onChange: parseCSC, - }).catch(console.error) + }).catch((err) => { + swal("Oops", err, "error"); + }) ); diff --git a/templates/base.html b/templates/base.html index 0fb3d1b..269ccbb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,6 +9,7 @@ +