Raise custom error if reading the scale fails.