try catch in entrypoint for kernel stuff

This commit is contained in:
Djeeberjr 2023-04-01 03:27:52 +02:00
parent bf378deea2
commit f8f5f5e5c7

View File

@ -4,7 +4,13 @@ import kernel.log.Log;
class Entrypoint { class Entrypoint {
public static function main() { public static function main() {
Init.initKernel(); try {
Init.initKernel();
}catch(e){
Log.error('Error in init: ${e.toString()}');
return;
}
try { try {
Startup.main(); Startup.main();
}catch(e){ }catch(e){