UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

16 lines (14 loc) 380 B
/** * @file Log error and terminate process * @description Single responsibility: Display error message and exit */ /** * Log error and exit * @param {string} message - Error message * @param {number} exitCode - Exit code */ function logErrorAndExit(message, exitCode = 1) { console.error(`❌ ${message}`); process.exit(exitCode); } module.exports = logErrorAndExit;