Return error code if one is given.