relay/src/error.ts

9 lines
158 B
TypeScript
Raw Normal View History

2022-07-24 00:24:19 +00:00
import log from "loglevel";
export function errorExit(msg: string): void {
2022-07-24 00:24:19 +00:00
log.error(msg);
process.exit(1);
}
export const ERR_NOT_READY = "NOT_READY";