Fix error message; arguments were swapped around.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 21 Feb 2012 16:03:33 +0000 (16:03 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 21 Feb 2012 16:04:47 +0000 (16:04 +0000)
lib/whenutils.ml

index cdfca47..d53ac7e 100644 (file)
@@ -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"