Browse Source

always catch unknown errors in compilation server mode

Nicolas Cannasse 13 years ago
parent
commit
f533ae21ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -1162,7 +1162,7 @@ with
 				raise (Completion c)
 			| _ ->
 				error ctx ("Could not load module " ^ (Ast.s_type_path (p,c))) Ast.null_pos)
-	| e when (try Sys.getenv "OCAMLRUNPARAM" <> "b" with _ -> true) ->
+	| e when (try Sys.getenv "OCAMLRUNPARAM" <> "b" || !global_cache <> None with _ -> true) ->
 		error ctx (Printexc.to_string e) Ast.null_pos
 
 ;;