From f8f5f5e5c70b1304232ece8b73c284571bbd9dc8 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sat, 1 Apr 2023 03:27:52 +0200 Subject: [PATCH] try catch in entrypoint for kernel stuff --- src/kernel/Entrypoint.hx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/kernel/Entrypoint.hx b/src/kernel/Entrypoint.hx index c71b323..745d8a5 100644 --- a/src/kernel/Entrypoint.hx +++ b/src/kernel/Entrypoint.hx @@ -4,7 +4,13 @@ import kernel.log.Log; class Entrypoint { public static function main() { - Init.initKernel(); + try { + Init.initKernel(); + }catch(e){ + Log.error('Error in init: ${e.toString()}'); + return; + } + try { Startup.main(); }catch(e){