예제 #1
0
        private async Task <int> HandleFeatureBitAlreadyExists(DataException e)
        {
            int returnValue;

            if (e.Message == ($"Cannot add. Feature bit with name '{_opts.Name}' already exists."))
            {
                returnValue = !_opts.Force ? FailWithoutForce() : await ForceUpdate();
            }
            else
            {
                returnValue = 1;
                SystemContext.ConsoleErrorWriteLine(e.ToString());
            }

            return(returnValue);
        }