bunext/utils/exit-with-error.ts
2025-11-05 07:12:15 +01:00

5 lines
123 B
TypeScript

export default function exitWithError(msg: string, code?: number) {
console.error(msg);
process.exit(code || 1);
}