bunext/dist/utils/exit-with-error.js
2026-03-19 05:27:31 +01:00

6 lines
131 B
JavaScript

import { log } from "./log";
export default function exitWithError(msg, code) {
log.error(msg);
process.exit(code || 1);
}