cleaner way to report task creation errors