improved 'missing layout' error