소스 검색

more sanity

Simon Krajewski 1 년 전
부모
커밋
026c223d56
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/compiler/hxb/hxbReader.ml

+ 5 - 1
src/compiler/hxb/hxbReader.ml

@@ -1502,7 +1502,11 @@ class hxb_reader
 		let instance_overload_cache = Hashtbl.create 0 in
 		let a = Array.init l (fun i ->
 			let c = self#read_class_ref in
-			ignore(c.cl_build());
+			begin try
+				ignore(c.cl_build())
+			with Error.Error err ->
+				error (Printf.sprintf "[HXB] [%s] Error while building class %s: %s" (s_type_path current_module.m_path) (s_type_path c.cl_path) (Error.error_msg err.err_message))
+			end;
 			let kind = match IO.read_byte ch with
 				| 0 -> CfrStatic
 				| 1 -> CfrMember