https://svn.lrde.epita.fr/svn/lrdetools/trunk
Index: ChangeLog
from Nicolas Pouillard <ertai(a)lrde.epita.fr>
Fix a bug a block arity.
* vcs/lib/vcs/vcs.rb: Call with the error handler with an argument only
if it can handle it.
vcs.rb | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: vcs/lib/vcs/vcs.rb
--- vcs/lib/vcs/vcs.rb (revision 255)
+++ vcs/lib/vcs/vcs.rb (working copy)
@@ -539,7 +539,7 @@
end
def call_handlers
- @@handlers.each { |k, v| v[k] }
+ @@handlers.each { |k, v| (v.arity.abs == 1)? v[k] : v[] }
end
def call_conf_checkers