Mercurial > hg > batmud > maputils
changeset 2122:66a54bef0d7e
Check for unknown replies from mapsearch server.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 17 Sep 2019 11:11:31 +0300 |
parents | dd280de434b9 |
children | 6ba7aae53296 |
files | www/search.js |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/www/search.js Thu Sep 12 14:33:29 2019 +0300 +++ b/www/search.js Tue Sep 17 11:11:31 2019 +0300 @@ -253,6 +253,8 @@ else mapResult("ERROR: "+ results); } + else + mapResult("ERROR: Unknown reply from server."); dataWS.close(); }; @@ -378,6 +380,8 @@ mapResult(str); } + else + mapResult("ERROR: Unknown reply from server."); mapWS.close(); }; @@ -475,6 +479,8 @@ mapResult(str); } + else + mapResult("ERROR: Unknown reply from server."); locWS.close(); };