corrected prepErrorType name