[PATCH v3 2/2] lib: make find_message{,by_filename) report errors