Commits

Jürgen Bömmels committed ae3af9e

fix off by one in errormessage

Comments (0)

Files changed (1)

scheme/procedure.py

     def procedure(self, ctx, lst):
         if len(lst) == 0:
             if self.default_result is None:
-                raise WrongArgsNumber(len(lst), ">1")
+                raise WrongArgsNumber(len(lst), ">=1")
 
             return self.default_result
 
 
     def procedure_tr(self, ctx, lst):
         if len(lst) < 2:
-            raise WrongArgsNumber(len(lst), ">2")
+            raise WrongArgsNumber(len(lst), ">=2")
 
         w_proc = lst[0]
         if not isinstance(w_proc, W_Procedure):