fix logging from pc_services

+ some other cosmetic console.log updates
This commit is contained in:
zefie
2022-10-10 16:30:07 -04:00
parent d4ceda7211
commit 500e6f6887
528 changed files with 10685 additions and 24 deletions

View File

@@ -0,0 +1,14 @@
var minisrv_service_file = true;
data = wtvguide.generatePage(request_headers.query.topic || "Index", request_headers.query.subtopic || "Main", request_headers.query.page || null)
if (data) {
headers = `200 OK
Connection: Keep-Alive
Content-Type: text/html`
} else {
err = wtvshared.doErrorPage(500);
console.log(" * wtv-guide error: no implementation for selected for topic/subtopic, or an error occured during generation")
headers = err[0];
data = err[1];
}