Print Error literal at the start of all error messages for better parsing from the logs (#260)

This commit is contained in:
Shantnu Suman
2025-07-16 16:21:56 +05:30
committed by GitHub
parent bed27df062
commit ab1805d7c0

View File

@@ -82,7 +82,7 @@ async function main() {
console.error(`\n${red("⚠️⚠️⚠️ Command failed with:")}\n\n`);
for (let i = 0; i < errors.length; i++) {
const idx = errors.length === 1 ? '' : `Error ${i + 1}) `;
const idx = `Error${errors.length === 1 ? '' : ` ${i + 1})`} `;
console.error(`\t${idx}${errors[i]}\n\n`);
}
}