paver/paver — Issue #37: Misleading message if non-task is referred in @needs
Author: Almad
Created: 2011-12-14 13:05:29+00:00
State: open

Traceback (most recent call last):
File "/home/lukas.linhart/projects/tvcafe/venv/bin/paver", line 8, in
load_entry_point('Paver==1.1.0', 'console_scripts', 'paver')()
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 646, in main
_launch_pavement(args)
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 629, in _launch_pavement
_process_commands(args, auto_pending=auto_pending)
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 582, in _process_commands
task, args = _parse_command_line(args)
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 521, in _parse_command_line
args = task.parse_args(args)
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 323, in parse_args
parser = self.parser
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 265, in parser
needs_tasks = [(environment.get_task(task), task) for task in self.needs_closure]
File "/home/lukas.linhart/projects/paver/paver/tasks.py", line 364, in needs_closure
needs = environment.get_task(top).needs
AttributeError: 'function' object has no attribute 'needs'