mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Cleanup linting errors
This commit is contained in:
parent
ef05762635
commit
38b7c51985
1 changed files with 7 additions and 2 deletions
|
|
@ -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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue