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

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

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);