Add error information for "search" command