print data on error during lock calcs