moved error codes to SlotMeasurement
fixed misunderstood error printer