Replace custom error vi with custom error file