Nicolas Cannasse 18 years ago
parent
commit
7f8b175997
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2524,7 +2524,7 @@ let type_module ctx m tdecls loadp =
 					let t = List.find (fun tdecl -> snd (t_path tdecl) = t) types in
 					let t = List.find (fun tdecl -> snd (t_path tdecl) = t) types in
 					ctx.local_types <- ctx.local_types @ [t]
 					ctx.local_types <- ctx.local_types @ [t]
 				with
 				with
-					Not_found -> error ("Module " ^ s_type_path (pack,name) ^ " does not define type " ^ name) p
+					Not_found -> error ("Module " ^ s_type_path (pack,name) ^ " does not define type " ^ t) p
 			);
 			);
 			m.mimports <- (md,topt) :: m.mimports;
 			m.mimports <- (md,topt) :: m.mimports;
 		| EClass d ->
 		| EClass d ->