Cleanup linting errors

This commit is contained in:
bitterpanda 2026-01-30 14:44:26 +01:00
parent ef05762635
commit 38b7c51985

View file

@ -79,6 +79,11 @@ function getPathsPerPlatform() {
} }
} }
/**
* @param {string} appName
* @param {string} logPath
* @param {string} errLogPath
*/
async function printLogs(appName, logPath, errLogPath) { async function printLogs(appName, logPath, errLogPath) {
ui.writeInformation(`=== ${appName} Logs ===`); ui.writeInformation(`=== ${appName} Logs ===`);
try { try {
@ -89,7 +94,7 @@ async function printLogs(appName, logPath, errLogPath) {
ui.writeWarning(`${appName} log file not found: ${logPath}`); ui.writeWarning(`${appName} log file not found: ${logPath}`);
} }
} catch (error) { } catch (error) {
ui.writeError(`Failed to read ${appName} logs: ${error.message}`); ui.writeError(`Failed to read ${appName} logs: ${error}`);
} }
ui.writeInformation(`=== ${appName} Error Logs ===`); ui.writeInformation(`=== ${appName} Error Logs ===`);
@ -101,6 +106,6 @@ async function printLogs(appName, logPath, errLogPath) {
ui.writeInformation(`No error log file found for ${appName}.`); ui.writeInformation(`No error log file found for ${appName}.`);
} }
} catch (error) { } catch (error) {
ui.writeError(`Failed to read ${appName} error logs: ${error.message}`); ui.writeError(`Failed to read ${appName} error logs: ${error}`);
} }
} }