Return an error message when no matches found on a lookup

Could you do something like this?