Proper error handling when an entry is not found