Explorar o código

output which argument is being processed when an invalid class name is encountered (closes #2145)

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
d271713fc0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      main.ml

+ 2 - 1
main.ml

@@ -160,7 +160,8 @@ let make_path f =
 		| _ -> cl
 		| _ -> cl
 	) in
 	) in
 	let error() =
 	let error() =
-		let msg =
+		let msg = "Could not process argument " ^ f in
+		let msg = msg ^ "\n" ^
 			if String.length f == 0 then
 			if String.length f == 0 then
 				"Class name must not be empty"
 				"Class name must not be empty"
 			else match (List.hd (List.rev cl)).[0] with
 			else match (List.hd (List.rev cl)).[0] with