added error handling to update rake task.