2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 23:36:37 +00:00

fhemweb.js: add filename to error message (Forum #64541)

git-svn-id: https://svn.fhem.de/fhem/trunk@13034 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-10 10:04:44 +00:00
parent e1d9dd8726
commit f4c4508658

View File

@ -34,7 +34,8 @@ window.onbeforeunload = function(e)
window.onerror = function(errMsg, url, lineno)
{
FW_okDialog(lineno+": "+errMsg);
url = url.replace(/.*\//,'');
FW_okDialog(url+" line "+lineno+":<br>"+errMsg);
}