enable exception stack trace on PC pages (think PHP show_errors), with option to disable it globally
This commit is contained in:
@@ -136,6 +136,7 @@ async function processPath(socket, service_vault_file_path, request_headers = ne
|
||||
http: http,
|
||||
https: https,
|
||||
wtvshared: wtvshared,
|
||||
zlib: zlib,
|
||||
clientShowAlert: clientShowAlert,
|
||||
WTVClientSessionData: WTVClientSessionData,
|
||||
WTVClientCapabilities: WTVClientCapabilities,
|
||||
@@ -408,7 +409,11 @@ async function processPath(socket, service_vault_file_path, request_headers = ne
|
||||
} catch (e) {
|
||||
var errpage = wtvshared.doErrorPage(400);
|
||||
headers = errpage[0];
|
||||
data = errpage[1] + "<br><br>The interpreter said:<br><pre>" + e.toString() + "</pre>";
|
||||
data = errpage[1];
|
||||
if (socket.minisrv_pc_mode) {
|
||||
if (minisrv_config.services.pc_services.show_verbose_errors)
|
||||
data += "<br><br>The interpreter said:<br><pre>" + e.stack + "</pre>";
|
||||
}
|
||||
console.error(" * Scripting error:", e);
|
||||
}
|
||||
if (!request_is_async) {
|
||||
|
||||
@@ -131,9 +131,10 @@
|
||||
},
|
||||
"pc_services": {
|
||||
"port": 1699,
|
||||
"servicevault_dir": "http_pc",
|
||||
"disabled": true,
|
||||
"servicevault_dir": "http_pc",
|
||||
"drop_connection_on_wrong_port": false,
|
||||
"show_verbose_errors": false,
|
||||
"allow_https": false,
|
||||
"force_https": false
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
<Content Include="ServiceDeps\premade_tellyscripts\LC2\LC2_WTV_18006138199.detok.txt" />
|
||||
<Content Include="ServiceDeps\premade_tellyscripts\LC2\LC2_WTV_18006138199.tok" />
|
||||
<Content Include="ServiceVault\http_pc\index.js" />
|
||||
<Content Include="ServiceVault\http_pc\viewergen\index.js" />
|
||||
<Content Include="ServiceVault\http_pc\viewergen\viewers\WebTVIntel--2.5.exe.gz" />
|
||||
<Content Include="ServiceVault\wtv-1800\noflash.js" />
|
||||
<Content Include="ServiceVault\wtv-1800\offer-open-isp-suggest.js" />
|
||||
<Content Include="ServiceVault\wtv-chat\home.js" />
|
||||
@@ -445,6 +447,8 @@
|
||||
<Folder Include="ServiceDeps\premade_tellyscripts\LC2\" />
|
||||
<Folder Include="ServiceVault\" />
|
||||
<Folder Include="ServiceVault\http_pc\" />
|
||||
<Folder Include="ServiceVault\http_pc\viewergen\" />
|
||||
<Folder Include="ServiceVault\http_pc\viewergen\viewers\" />
|
||||
<Folder Include="ServiceVault\wtv-mail\" />
|
||||
<Folder Include="ServiceVault\wtv-chat\" />
|
||||
<Folder Include="ServiceVault\wtv-chat\images\" />
|
||||
|
||||
Reference in New Issue
Block a user