Clean up some error-handling in codesearch.
Clean up some error-handling in codesearch.

paulproteus/livegrep,paulproteus/livegrep,paulproteus/livegrep,lekkas/livegrep,lekkas/livegrep,lekkas/livegrep,lekkas/livegrep,wfxiang08/livegrep,paulproteus/livegrep,wfxiang08/livegrep,wfxiang08/livegrep,wfxiang08/livegrep,lekkas/livegrep,paulproteus/livegrep,lekkas/livegrep,paulproteus/livegrep,wfxiang08/livegrep,wfxiang08/livegrep