Remove debug statement
Add error message if all links were erroneous