Table Error Message

export function button6_click() {
wixData.query('regdog')
   .contains('code', $w('#input12').value)
   .find()
   .then(res => {   
      $w('#table4').rows = res.items;
      
    });
    
    if ($w('#input12').value === ''){
    	
    	$w('#table4').hide();
    }
    
   else  {
   	$w('#table4').show();
   }
} 

Can someone give some advice how to display message or just an ALT if the customer enter a incorrect or don’t put anything on the search bar.