use the correct error category