[Fix] <PLS> More verbose logging & Change API domain

This commit is contained in:
Minoricew
2025-06-12 19:54:30 +08:00
parent 9e63a9374f
commit a9d3772b51
4 changed files with 20 additions and 8 deletions

View File

@@ -123,6 +123,7 @@ const composableFunctions = {
failedTemplate.message =
"Request error: Unexpected error while downloading file";
failedTemplate.errorObj = e;
console.error(`[HugoAura / IPC / FS / ERROR] Error downloading file from ${url}, errorObj:`, e);
progressCallback(failedTemplate);
global.__HUGO_AURA__.fsTasks?.downloadTasks.delete(taskId);
return false;

View File

@@ -427,10 +427,6 @@ const applyPlsIpcHandler = (ipcMain) => {
async (_event, arg) => {
const logHeader = "[HugoAura / IPC / PLS] <plsLifecycleControl>";
if (!global.__HUGO_AURA__.plsStats?.installed) {
return { success: false, errorObj: new Error("PLS not installed") };
}
switch (arg.target) {
case "instSvc":
return await functions.execCommand(
@@ -452,6 +448,10 @@ const applyPlsIpcHandler = (ipcMain) => {
success: false,
errorObj: error,
});
console.error(
`${logHeader} Failed to remove PLS bin, error:`,
error
);
return false;
}