From 05ade7bb494f37bbbfb4b20d59d487e5ede98b05 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Feb 2012 16:03:33 +0000 Subject: [PATCH] Fix error message; arguments were swapped around. --- lib/whenutils.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/whenutils.ml b/lib/whenutils.ml index cdfca47..d53ac7e 100644 --- a/lib/whenutils.ml +++ b/lib/whenutils.ml @@ -249,7 +249,7 @@ and expr_of_iexpr _loc = function | IExpr_app (("change"|"changes"|"changed"|"inc"|"increase"|"increases"|"increased"|"dec"|"decrease"|"decreases"|"decreased"|"prev"|"previous") as op, _) -> invalid_arg (sprintf "%s: '%s' operator must be followed by a variable name" - op (Loc.to_string _loc)) + (Loc.to_string _loc) op) | IExpr_app (op, _) -> invalid_arg (sprintf "%s: unknown operator in expression: %s" -- 1.8.3.1