treat error condition appropriately.