2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhemweb.js: better error message on garbage #FHEMWEB code (Forum #126824)

git-svn-id: https://svn.fhem.de/fhem/trunk@25856 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-03-18 18:09:03 +00:00
parent 454bd19cc7
commit 1a86a49380

View File

@ -1212,7 +1212,11 @@ FW_doUpdate(evt)
continue;
if( d[0].match(/^#FHEMWEB:/) ) {
eval(d[1]);
try {
eval(d[1]);
} catch(e) {
FW_okDialog("#FHEMWEB notification:<br>"+d[1]+"<br>"+e);
}
} else {
setValue(d);