From: Richard W.M. Jones Date: Tue, 21 Feb 2012 16:03:33 +0000 (+0000) Subject: Fix error message; arguments were swapped around. X-Git-Tag: 0.0.1~11 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=05ade7bb494f37bbbfb4b20d59d487e5ede98b05;p=whenjobs.git Fix error message; arguments were swapped around. --- 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"