Replace common error with defined value.