Define error with less code