Change custom error mode