Added more informative logging on lookup error.