fix wtv-flashrom catch-all error messages

This commit is contained in:
zefie
2022-10-02 17:09:19 -04:00
parent 9d33e86937
commit fee8b768fc
2 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +1,4 @@
var minisrv_service_file = true; var minisrv_service_file = true;
const WTVFlashrom = require("./WTVFlashrom.js");
request_is_async = true; request_is_async = true;
var bf0app_update = false; var bf0app_update = false;

View File

@@ -140,6 +140,7 @@ async function processPath(socket, service_vault_file_path, request_headers = ne
clientShowAlert: clientShowAlert, clientShowAlert: clientShowAlert,
WTVClientSessionData: WTVClientSessionData, WTVClientSessionData: WTVClientSessionData,
WTVClientCapabilities: WTVClientCapabilities, WTVClientCapabilities: WTVClientCapabilities,
WTVFlashrom: WTVFlashrom,
strftime: strftime, strftime: strftime,
CryptoJS: CryptoJS, CryptoJS: CryptoJS,
fs: fs, fs: fs,
@@ -398,8 +399,8 @@ async function processPath(socket, service_vault_file_path, request_headers = ne
updateFromVM.forEach((item) => { updateFromVM.forEach((item) => {
eval(item[0] +' = contextObj["'+item[1]+'"]'); eval(item[0] +' = contextObj["'+item[1]+'"]');
}) })
if (request_is_async && !minisrv_config.config.debug_flags.quiet) console.log(" * Script requested Asynchronous mode"); if (request_is_async && !minisrv_config.config.debug_flags.quiet) console.log(" * Script requested Asynchronous mode");
break;
} else { } else {
service_check_dir.pop(); service_check_dir.pop();
} }