fix error checking in iric-calc-client