redirect to error instead of displaying directly