Better warning when search fails.