pydoit / doit

CLI task management & automation tool
http://pydoit.org
MIT License
1.87k stars 175 forks source link

On error while creating tasks, report the offending task. #454

Closed mlell closed 1 year ago

mlell commented 1 year ago

This is especially applicable if tasks are defined using the create_doit_tasks() function mechanism, which can have more complicated instructions and cause errors. If the exception further occurs in a function that cannot be assigned to a task (e.g. a helper function in use by multiple tasks), having the task name in the error message is helpful.