Dashing.Console.Program.DisplayMigrationWarningsAndErrors C# (CSharp) Method

DisplayMigrationWarningsAndErrors() private static method

private static DisplayMigrationWarningsAndErrors ( IEnumerable errors, IEnumerable warnings ) : bool
errors IEnumerable
warnings IEnumerable
return bool
        private static bool DisplayMigrationWarningsAndErrors(IEnumerable<string> errors, IEnumerable<string> warnings) {
            bool shouldExit = false;

            using (Color(ConsoleColor.Red)) {
                foreach (var error in errors) {
                    shouldExit = true;
                    Console.Write("-- ");
                    Console.WriteLine(error);
                }
            }

            using (Color(ConsoleColor.Yellow)) {
                foreach (var warning in warnings) {
                    Console.Write("-- ");
                    Console.WriteLine(warning);
                }
            }

            return shouldExit;
        }