return configured service name in error message instead of "HackTV"

This commit is contained in:
zefie
2022-10-02 01:34:53 -04:00
parent bac031bd4e
commit 678418073a

View File

@@ -432,7 +432,7 @@ class WTVShared {
break; break;
case 400: case 400:
case 500: case 500:
if (data === null) data = "HackTV ran into a technical problem."; if (data === null) data = this.minisrv_config.config.service_name + " ran into a technical problem.";
if (pc_mode) headers = "500 Internal Server Error\n"; if (pc_mode) headers = "500 Internal Server Error\n";
else headers = code + " " + data + "\n"; else headers = code + " " + data + "\n";
headers += "Content-Type: text/html\n"; headers += "Content-Type: text/html\n";