Minor change to errocode generation.