rename up to errordef and warn error def