12 lines
277 B
TypeScript
12 lines
277 B
TypeScript
import Log from "../Log";
|
|
|
|
export default class Starter {
|
|
public static run(T): void {
|
|
try {
|
|
new T().main();
|
|
} catch (error) {
|
|
Log.error(error);
|
|
Log.error('[Starter] trace: ', JSON.stringify({ error }));
|
|
}
|
|
}
|
|
} |